Answer the question
In order to leave comments, you need to log in
Do I need to make an api for reactjs or upload data to the page?
I looked at the implemented applications on reactjs and often came across that json data was simply inserted into the page upon loading, and after react took the data from this variable and used it. And the second option that I saw is to create some kind of api, using axios for example, and react makes a request to this api and receives the initial json. What is the best option to use in what cases?
Answer the question
In order to leave comments, you need to log in
what do you want, if there is already a ready-made admin panel with rest api, then you immediately use it, if the project is not large and there is no api ready, then why do you need it? if a big project, then you can write your bike or finish something ready.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question