-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
36 lines (31 loc) · 947 Bytes
/
Copy pathindex.js
File metadata and controls
36 lines (31 loc) · 947 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
26
27
28
29
30
31
32
33
34
35
36
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router,
Route, Link } from 'react-router-dom'
import 'bootstrap/dist/css/bootstrap.css'
import './styles.css';
import NavigationBar from './components/NavigationBar';
import App from './App';
import WebApp from './WebApp/WebApp';
import ChatApp from './Chatter/ChatApp';
import AcmeApp from './Acme/AcmeApp';
import Playground from './Playground/App';
const Home = () => {
return (
<div className='home'>
<h3>Hello from Home</h3>
</div>
)
}
ReactDOM.render(
<Router>
<div>
<NavigationBar />
<Route exact path="/" component={Home} />
<Route path="/web-app" component={WebApp} />
<Route path="/fake-chat" component={ChatApp} />
<Route path="/acme-app" component={AcmeApp} />
<Route path="/playground" component={Playground} />
</div>
</Router>,
document.getElementById('root'));