Router of the-components


Keywords
react-component, the
License
MIT
Install
npm install the-router@3.0.4

Documentation

the-router

Build Status npm Version JS Standard

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.

Links