Skip to content

Commit

Permalink
feat: add /home
Browse files Browse the repository at this point in the history
  • Loading branch information
mori-dev committed Dec 1, 2016
1 parent 3338cee commit aa28ba3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/containers/main_container.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import React, { Component } from 'react';
import { connect } from 'react-redux';
import AppBar from 'material-ui/AppBar';
import { Link } from 'react-router';

function mapStateToProps(state: Object): Object {
return {};
Expand All @@ -19,6 +20,7 @@ class MainContainer extends Component {
return (
<div>
<AppBar title={'MainContainer'} />
<Link to={'/home'}> /home へ遷移 </Link>
{this.props.children}
</div>
);
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ ReactDOM.render(
<Router history={history}>
<Route path="/" component={MainContainer} >
<IndexRoute component={HomeContainer} />
<Route path="/home" component={HomeContainer} />
</Route>
</Router>
</MuiThemeProvider>
Expand Down

0 comments on commit aa28ba3

Please sign in to comment.