)
}
}
render((
), document.getElementById('app'))
```
## 网址参数
```
class Message extends React {
componentDidMount() {
// from the path `/inbox/messages/:id`
const id = this.props.params.id
...
```
## 链接
```
import { Link } from 'react-router'
/* Nav Component */
...
render() {
...
const userId = 10;
return (
// Adding params is as simple as appending them to the route
User 10
// Classes can be added to the link element if the current route is the one they link to
Login
)
}
```
## 其他配置
```
// arbitrary/url/login -> /arbitrary/url/sessions/new
// arbitrary/url/about/1 -> /arbitrary/url/profile/1
...
```