New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-roadway

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-roadway

Minimal Routing for React

latest
Source
npmnpm
Version
0.3.1
Version published
Weekly downloads
6
-25%
Maintainers
1
Weekly downloads
 
Created
Source

React Roadway

Minimal Routing for React

Installation

npm install react-roadway --save

Examples


const Home = createRoute((props) => (
  <div>
    <h1>Home</h1>
  </div>
));

const About = createRoute((props) => (
  <div>
    <h1>About</h1>
  </div>
));

const App = createRouter(() => (
  <div>
    <nav>
      <ul>
        <li><Link href="/">Home</Link></li>
        <li><Link href="/about">About</Link></li>
      </ul>
    </nav>
    <Home match="/" />
    <About match="/about" />
  </div>
));

render(<App />);

Contributor Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

MIT Copyright (c) 2017 Opentrace

Keywords

react

FAQs

Package last updated on 11 Sep 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