2.0.0 • Published 5 years ago
chatblocks-router v2.0.0
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 Route
s.
2.0.0
5 years ago