🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
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

latest
npmnpm
Version
0.0.12
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