Frederic G. MARAND 9 년 전
부모
커밋
21e53c6549
2개의 변경된 파일13개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      index.html
  2. 12 3
      modules/App.js

+ 1 - 1
index.html

@@ -1,4 +1,4 @@
-<!doctype html public "storage">
+<!doctype html public="storage">
 <html>
 <meta charset=utf-8/>
 <title>My First React Router App</title>

+ 12 - 3
modules/App.js

@@ -1,7 +1,16 @@
-import React from 'react'
+import { Link } from "react-router";
+import React from "react";
 
 export default React.createClass({
   render() {
-    return <div>Hello, React Router!</div>
+    return (
+      <div>
+        <h1>React router tutorial</h1>
+        <ul role="nav">
+          <li><Link to="/about">About</Link></li>
+          <li><Link to="/repos">Repos</Link></li>
+        </ul>
+      </div>
+    );
   }
-})
+});