2.0.0 • Published 5 years ago

chatblocks-router v2.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

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.