Skip to main content
Version: 1.1.2

Configuration

Set the configuration of your Router using createInstance() method.

Create config​

src/index.js
import { Router } from 'yourrouter'

Router.createInstance({})

path404​

Name of route with 404 HTTP status code.

src/index.js
import { Router } from 'yourrouter'

Router.createInstance({
path404: '/notFound'
})

renderId​

Id where the templates will be rendered. Use #app to id and .app to css class.

src/index.js
import { Router } from 'yourrouter'

Router.createInstance({
renderId: '#app'
})