Is it possible to use async/await in plain react?



Is it possible to use async/await in plain react?..

Answer / Abhinav Kumar Pandey

Yes, but you would need to use Promises with fetch or XMLHttpRequest. React does not have built-in support for async/await.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More React.js Interview Questions

Is it possible to use the word class in jsx?

1 Answers  


How is react different?

1 Answers  


What are components in reactjs?

1 Answers  


What is unidirectional data flow? How does data flow happening in Redux?

1 Answers  


Which feature can we use to cause a component to render only when its id changes?

1 Answers  


List down the components of redux?

1 Answers  


Explain yield catchphrase in JavaScript

1 Answers  


How to dispatch the data in-store?

1 Answers  


What is inline conditional expressions?

1 Answers  


How can you spill the reducers?

1 Answers  


How to set focus in reactjs?

1 Answers  


How do you pass data from child to parent component?

1 Answers  


Categories