D
D
Damir Shaniyazov2022-03-22 21:41:56
React
Damir Shaniyazov, 2022-03-22 21:41:56

How does react understand when to contact the server and when to render a component?

How does react understand when to contact the server and when to render a component? Let's say at site.com we get a react app that uses react router dom, we have a router that, if it doesn't find a suitable route, displays page not found. what if we have data from the server pulled from site.com/api? react will give not found page or load data?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question