1.0.4 • Published 4 years ago

boulevard-react v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

boulevard-react

boulevard as a hook, using useHistory

usage

npm install boulevard-react
const useRoutes = require('boulevard-react')

const routes = {
	'/': () => <div>home</div>
	'/page/:id': ({id}) => <div>page {id}</div>
}

const App = () => {
	const {children} = useRoutes(routes)
	return <div>{children}</div>
}
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago