You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
585 B
25 lines
585 B
import React from 'react';
|
|
import { BrowserRouter as Router, Route, Routes, Link } from 'react-router-dom';
|
|
import Home from './Home';
|
|
import MotionDrive from './MotionDrive';
|
|
|
|
const App = () => {
|
|
return (
|
|
<Router>
|
|
<div>
|
|
<nav>
|
|
<Link to="/">Home</Link>
|
|
<br></br>
|
|
<Link to="/motion-drive">Motion Drive</Link>
|
|
</nav>
|
|
<Routes>
|
|
<Route exact path="/" element={<Home />} />
|
|
<Route path="/motion-drive" element={<MotionDrive />} />
|
|
</Routes>
|
|
</div>
|
|
</Router>
|
|
);
|
|
};
|
|
|
|
export default App;
|