R
R
rsoinvi2018-05-29 15:00:02
React
rsoinvi, 2018-05-29 15:00:02

What is react route?

Explain in simple terms what is react-route? What is it for? Is it a must have or can you do without it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Spirin, 2018-05-29
@rsoinvi

A library that allows you to use client-side routing. If your application implies navigating through application pages with url substitution in the browser and without reloading the page (SPA), then yes, you need client-side routing. You can use react-router-dom , or you can write your own router. The first option will save you a lot of time, is easy to use, and you can always find standard solutions to most problems on the Internet. The second option is only suitable for self-development.

M
Maxim, 2018-05-30
@maxfarseer

Here in the text / video we make a primitive router (as in react router 4). Perhaps it will add to your understanding.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question