Skip to content

Commit

Permalink
Merge branch 'release/0.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
toshiyukihina committed May 16, 2016
2 parents 6deee3e + 6e5b0b3 commit 9de8ed2
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 6 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
@@ -1,3 +1,8 @@
0.0.2 / 2016/05/16
==================

* [Lesson 2-react-router-tutorial](https://github.com/reactjs/react-router-tutorial/tree/master/lessons/02-rendering-a-route) done

0.0.1 / 2016/05/16
==================

Expand Down
14 changes: 14 additions & 0 deletions app/components/about.jsx
@@ -0,0 +1,14 @@
import React from 'react';
import ReactDOM from 'react-dom';

export default class About extends React.Component {

constructor(props) {
super(props);
}

render() {
return (<div>About</div>);
}

}
14 changes: 14 additions & 0 deletions app/components/repos.jsx
@@ -0,0 +1,14 @@
import React from 'react';
import ReactDOM from 'react-dom';

export default class Repos extends React.Component {

constructor(props) {
super(props);
}

render() {
return (<div>Repos</div>);
}

}
17 changes: 13 additions & 4 deletions app/index.jsx
@@ -1,10 +1,19 @@
import React from 'react';
import ReactDOM from 'react-dom';
require('../node_modules/bootstrap/dist/css/bootstrap.css')
import { Router, Route, hashHistory } from 'react-router';

import App from './components/app'
require('../node_modules/bootstrap/dist/css/bootstrap.css');

ReactDOM.render(
<App />,
import App from './components/app';
import About from './components/about';
import Repos from './components/repos';

ReactDOM.render((
<Router history={hashHistory}>
<Route path="/" component={App} />
<Route path="/repos" component={Repos} />
<Route path="/about" component={About} />
</Router>
),
document.body.appendChild(document.createElement('div'))
);
5 changes: 3 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "react-router-tutorial",
"version": "0.0.1",
"version": "0.0.2",
"description": "",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -31,6 +31,7 @@
"lodash": "^4.12.0",
"react": "^15.0.2",
"react-bootstrap": "^0.29.4",
"react-dom": "^15.0.2"
"react-dom": "^15.0.2",
"react-router": "^2.4.0"
}
}

0 comments on commit 9de8ed2

Please sign in to comment.