blob: 437278aa86b4e857e74ed5abd7d66739d990473b (
plain) (
tree)
|
|
import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import Login from './components/Login';
import Dashboard from './components/Dashboard';
import PrivateRoute from './components/PrivateRoute';
const App = () => {
return (
<Router>
<Switch>
<Route path="/login" component={Login} />
<PrivateRoute path="/dashboard" component={Dashboard} />
</Switch>
</Router>
);
};
export default App;
|