V
V
Vladimir2020-02-02 22:36:57
JavaScript
Vladimir, 2020-02-02 22:36:57

Does react router allow you to create a public component with its own routing?

I'm trying to use the useRouteMatch hook to create a component with my own routing
https://reacttraining.com//web/guides/quick-start section "Nesting" and as a result I get a
TypeError: useContext(...) is undefined
I'm like this I understand reacr-router requires one context for the entire application and not for a separate component

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