D
D
Dmitry Avilov2020-04-23 22:04:47
React
Dmitry Avilov, 2020-04-23 22:04:47

What is the difference in using different syntax for ROUTES?

Hello everyone)
I came across 2 ways to implement the route.
5ea1e86753b2f284293041.jpeg

The first option was found out by accident when, when using the second option, I forgot to specify "/" before ">" at the end.

And exactly what is the difference?
After all, when using the second option, the syntax is simpler, but in the first option, in addition to "component", you can also use "render" (I don't understand in which case what to use).

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