I'm using React JS.
At First, I need to fetch data from database using REST API and with this results, I'm setting some variables which further I'm passing to another class. Now I want to make a synchronous request through axios so that only after setting data control should go next. In short, I want to stop rendering my code till my variables will set to data. How to achieve this through axios?