-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.jsx
More file actions
25 lines (23 loc) · 877 Bytes
/
index.jsx
File metadata and controls
25 lines (23 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React from 'react';
import ReactDOM from 'react-dom';
import { SignupPage } from './src/components/signup/signup.tsx';
import { AuthProvider } from './src/context/auth-context.jsx';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import { Login } from './src/components/login/login.tsx';
import { Dashboard } from './src/components/dashboard/dashboard.tsx';
const AppStarter = () => {
return (
<div className="main" style={{ margin: '50px 50px 10px 100px' }}>
<Router>
<AuthProvider>
<Switch>
<Route exact path="/" component={Dashboard} />
<Route path="/signup" component={SignupPage} />
<Route path="/login" component={Login} />
</Switch>
</AuthProvider>
</Router>
</div>
);
};
ReactDOM.render(<AppStarter />, document.getElementById('root'));