DEV Community

Cover image for Fetching data the correct way in React

Fetching data the correct way in React

AILI Fida Aliotti Christino on March 09, 2023

If you've worked on a React project, chances are you have fetched data from APIs. But have you never asked yourself if your way of doing was correc...
Collapse
 
nichiren96 profile image
Roel Tombozafy

What is the difference between data is loading and data is fetching?
Is the there an equivalent of React Query for VueJs ?

Collapse
 
lynxgsm profile image
AILI Fida Aliotti Christino

For the difference between loading and fetching, i suggest you to log them in your side. That way you can experiment it directly. 😁

React query is apparently available for Solid, React, Vue and Svelte.