-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
38 lines (29 loc) · 1.13 KB
/
index.js
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
38
// src/index.js
import React from 'react';
import ReactDOM from 'react-dom';
import '../node_modules/semantic-ui-css/semantic.min.css';
import './index.css';
//using ES6 modules
import {
BrowserRouter as Router
} from 'react-router-dom'
import Main from './components/Main';
import Home from './components/Home';
import About from './components/About';
import Projects from './components/Projects';
import { SettingUpAPortfolioPost } from './markdown/blog/2017/march/SettingUpAPortfolio';
import { SettingUpCustomDomainWithHerokuAndNamecheapPost } from './markdown/blog/2017/april/SettingUpCustomDomainWithHerokuAndNamecheap';
import { VSCodePost } from './markdown/blog/2017/april/VSCode';
import { ReactMeteorTutorialPost } from './markdown/blog/2017/april/ReactMeteorTutorial';
import { ChattybotPost } from './markdown/blog/2017/may/Chattybot';
import {render} from "react-dom";
import {browserHistory, match} from "react-router";
import createRoutes from "./routes";
const Root = () => (
<Router history={browserHistory}>{createRoutes()}</Router>
);
ReactDOM.render(
<Root />,
document.getElementById('root')
);
export default Root;