the-router
Router of the-components
Installation
$ npm install the-router --save
Usage
'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
Components
TheRouter
Router of the-components
TheRouterStyle
Style for TheRouter
Props
Name | Type | Description | Default |
---|---|---|---|
options |
object | Style options | {} |
License
This software is released under the MIT License.