Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

New Syntax of Router Routes

import { BrowserRouter as Router, Routes, Route, Link } from "react-router-dom";

<Routes>
    <Route path="/home" element={<Home/>} />
</Routes>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #New #Syntax #Router #Routes
ADD COMMENT
Topic
Name
8+6 =