chatblocks-router
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

chatblocks-router

Why Router?

It solves common trouble with developing simple chatbot, namely separating "routes". You could have used if or switch statements, but it feels not native.

API

Router component wraps Route components.

Router accepts currentRoute prop. Route accepts path prop.

It works like switch statement. Chatblocks will render only children of matching Routes.

Package Sidebar

Install

npm i chatblocks-router

Weekly Downloads

2

Version

2.0.0

License

MIT

Unpacked Size

2.7 kB

Total Files

5

Last publish

Collaborators

  • skorytnicki