DEV Community

Discussion on: My react-router doesn't work while using axios to fetch API.

 
frgarciames profile image
frgarciames

You already have the data stored. When you fetch data you are using useState hook to store the data with setNews.

Thread Thread
 
xnslx profile image
xnslx

Thank you for your advice and patience! I will have a try later! Thank you!