-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.js
More file actions
37 lines (35 loc) · 1.29 KB
/
App.js
File metadata and controls
37 lines (35 loc) · 1.29 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
import React from 'react';
import ReactDOM from 'react-dom';
import { Link, Route, Switch } from 'react-router-dom';
import { connect } from 'react-redux'
import Question from './scenes/Question';
import Discussion from './scenes/Discussion';
import InterviewPrep from './scenes/InterviewPrep';
import Dashboard from './scenes/Dashboard';
import Problems from './scenes/Problems';
import Login from './scenes/Login';
import Register from './scenes/Register';
import './index.css';
class App extends React.Component {
render() {
return (
<div className="layout">
<Route exact={true} path="/"
render={(props) => <Question {...props} />}/>
<Route path="/discussion"
render={(props) => <Discussion {...props} />}/>
<Route path="/interviewprep"
render={(props) => <InterviewPrep {...props} />}/>
<Route path="/dashboard"
render={(props) => <Dashboard {...props} />}/>
<Route path="/problems"
render={(props) => <Problems {...props} />}/>
<Route path="/login"
render={(props) => <Login {...props} />}/>
<Route path="/register"
render={(props) => <Register {...props} />}/>
</div>
);
}
}
export default App;