DEV Community

Discussion on: "Synchronous" fetch with async/await

Collapse
 
venkatgadicherla profile image
venkatgadicherla

Hi
May be I am a bit naive. But this bit of code not working for me. I am trying to put this in a react component in componentDidMount to get data from asp.net controller and getting various errors. Any pre-requisites for this code to work.