Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

you should not use switch outside a router react

<BrowserRouter>
 <Switch>
  //your routes here
 </Switch>
</BrowserRouter>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #switch #router #react
ADD COMMENT
Topic
Name
5+1 =