Because you have two switch statement, the router checks the first switch and loads the default not found route
Also this, why the Blog & Contact doesn't appear, is there any way to have multiple providers in Routes
<Switch> <AProvider> <Route exact path="/" component={Home} /> <Route exact path="/about" component={About} /> </AProvider> <BProvider> <Route exact path="/blog" component={Blog} /> <Route exact path="/contact" component={Contact} /> <Route component={NotPage} /> </BProvider> </Switch>
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Because you have two switch statement, the router checks the first switch and loads the default not found route
Also this, why the Blog & Contact doesn't appear, is there any way to have multiple providers in Routes