Skip to content

Commit

Permalink
step1:画面を追加する
Browse files Browse the repository at this point in the history
  • Loading branch information
p_ueda_hiroyuki committed Oct 22, 2018
1 parent 156de5a commit fe1b180
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/shared/components/organisms/Hello/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import React from "react";

export default function Hello(props) {
return <div>Hello!</div>;
}
3 changes: 3 additions & 0 deletions src/shared/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
Main,
NotFound,
DefaultLayout,
Hello,
} from "./main";

// chunked components
Expand Down Expand Up @@ -54,6 +55,8 @@ export default function getRoutes(store: $FIXME) {

<Route path="hn" getComponent={loadHackerNews} />

<Route path="hello" component={Hello} />

<Route path="login" getComponent={loadLogin} />
<Route path="logout" onEnter={bindOnEnter(doLogout)} />

Expand Down
1 change: 1 addition & 0 deletions src/shared/routes/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export { default as NotFound } from "../components/organisms/NotFound";
export {
default as DefaultLayout,
} from "../components/templates/DefaultLayout";
export { default as Hello } from "../components/organisms/Hello";

0 comments on commit fe1b180

Please sign in to comment.