Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

useeffect not working with react-dom-router

/* doing <Route exact path='/' element={<Home/>}/> instead of 
<Route exact path='/' element={Home}/> worked for me.
 
PREVIOUS NEXT
Tagged: #useeffect #working
ADD COMMENT
Topic
Name
2+4 =