Skip to content

Routing and navigation solution for React.js applications (early preview)

License

Notifications You must be signed in to change notification settings

gnz00/react-routing

 
 

Repository files navigation

React.js Routing and Navigation

NPM version NPM downloads Build Status Dependency Status Chat

Routing and navigation solution for React.js applications

For more information visit www.kriasoft.com/react-routing

How to Install

$ npm install react-routing --save

Quick Start

import { Router } from 'react-routing';

const router = new Router();

router.use('/', () => require('./components/Layout'));
router.route('/store', () => require('./components/Store'));
router.route('/store/:name', async (state) => {
  const component = require('./components/Product');
  const data = await http.get(`/api/products/${state.params.name}`);
  return [component, data];
});

router.run();

Related Projects

Support

License

The MIT License © Konstantin Tarkus (@koistya)

About

Routing and navigation solution for React.js applications (early preview)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%