DEV Community

Discussion on: 🛑 STOP thinking about React lifecycle methods.

 
swastikyadav profile image
Swastik Yadav • Edited

Agreed

So, how would you go about making an API call, based on the response of which your view will be rendered.

As per my React knowledge useEffect is the only way here.

Please share if it can be done without useEffect.