Revision: 70673
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 8, 2016 00:22 by dylansong
Initial Code
import React from 'react'; import { Router, Route, Link, hashHistory } from 'react-router'; const Message = (props) => <div><h1>{props.params.message || 'Hello'}</h1><Links /></div> const Links = () => <nav> <Link to="/">Hello</Link> <Link to="/Hi">Hi</Link> <Link to="/Yo">Yo</Link> </nav> class App extends React.Component { render(){ return ( <Router history={ hashHistory }> <Route path="/(:message)" component={Message}></Route> </Router> ); } } export default App;
Initial URL
Initial Description
Initial Title
6.router parameters
Initial Tags
Initial Language
Other