S
S
SeniorScript2021-01-28 21:04:06
React
SeniorScript, 2021-01-28 21:04:06

How to register paths for the admin part?

Good day!

I don’t know how to set the paths for the admin part (only the front) in react-router, so that it’s correct and without crutches. The problem is that Login and Admin should render without other components.

6012fc71dd866830497310.png

6012fc7907ff3141718722.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Koryakin, 2021-01-28
@zettend

Use Login as a global component that will work with both Admin and Index site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question