Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kurohune538 committed Mar 4, 2016
1 parent fadc90a commit 4c75a3b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
import { Router, Route, Link } from "react-router";
import React from "react";

const Header = React.createClass({
const Top = React.createClass({
render() {
return (
<div>hoge</div>
);
}
});

render((
<Router history={browserHistory}>
<Route path="/" component={App}>
<Route path="top" component={Top} />
<Route path="users" component={users}>
<Route path="/user/:userId" component={User} />
</Route>
<Route path="*" component={NoMatch} />
</Route>
</Router>
),document.body);

0 comments on commit 4c75a3b

Please sign in to comment.