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>
+    );
   }
-})
+});