Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-static-react-router

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-static-react-router

Simple static routing components for React

  • 0.0.12
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Simple react router

Installation

npm i simple-static-react-router

Example usage:

<div className="App">
  <Router>
    <Route path="/:user?">
      {...reactComponents}
    </Route>
    <Route path="/:user?/:user2?">
      {...reactComponents}
    </Route>
  </Router>
</div>

Path

Path regex uses: https://github.com/pillarjs/path-to-regexp

Params

Path parameters available in context.router.params

FAQs

Package last updated on 21 Jun 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc