E
E
Egor2016-08-10 17:46:29
RESTful API
Egor, 2016-08-10 17:46:29

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

1 answer(s)
N
Ninja Mate, 2016-08-10
@victorzadorozhnyy

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 question

Ask a Question

731 491 924 answers to any question