Socket
Socket
Sign inDemoInstall

chatblocks-router

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    chatblocks-router

Router components for chatblocks framework


Version published
Weekly downloads
1
Maintainers
1
Install size
2.64 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 27 Jan 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc