Router of the-components
$ npm install the-router --save
'use strict'
import React from 'react'
import { TheRouter } from 'the-router'
import { TheRoute } from 'the-route'
class ExampleComponent extends React.Component {
render () {
return (
<TheRouter>
<TheRoute path='/foo'>
<div>
hoge
</div>
</TheRoute>
</TheRouter>
)
}
}
export default ExampleComponent
Router of the-components
Style for TheRouter
Props
Name | Type | Description | Default |
---|---|---|---|
options |
object | Style options | {} |
This software is released under the MIT License.