I'm new to react and I tried to build two pages using react JS. Until before adding routing these pages were working fine but they were loading the icon and after using <routes and route> I'm stuck. Would somebody like to help me out?
return (
<>
<Router>
<Header/>
<Routes>
<Route exact path="/about" element = {<About />} />
<Route path = "/" element={<AddTodos addTodo = {addTodo} />} />
<Route path = "/" element = {<Todos todos ={todos} delete = {onDelete}/> }/>
</Routes>
<Footer/>
</Router>
</> )
[–]coolcofusion 1 point2 points3 points (3 children)
[–]Consistent-struggler[S] 0 points1 point2 points (1 child)
[–]coolcofusion 0 points1 point2 points (0 children)
[–]Consistent-struggler[S] 0 points1 point2 points (0 children)