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

react-router-defer

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-defer

Adds deferred asynchronous rendering to react router

latest
Source
npmnpm
Version
0.4.2
Version published
Maintainers
1
Created
Source

react-router-defer

GitHub stars

Adds deferred asynchronous rendering to react router

Please ★ this repo if you found it useful ★ ★ ★

Features

  • Adds asynchronous componentDefer method prop to Route component
  • Adds asynchronous renderDefer method prop to Route component
  • Adds asynchronous deferred hook to history.push

Installation

npm install --save react-router-defer

Dependencies

Usage

import React, { Component } from 'react';
import { Switch, Route } from 'react-router-defer';

export default class Routes extends Component {
  render() {
    return (
      <Switch>
        <Route exact path="/" componentDefer={() => import('./Home')} />
        <Route componentDefer={() => import('./NotFound')} />
      </Switch>
    );
  }
}

Contribute usage docs

Support

Submit an issue

Screenshots

Contribute a screenshot

Contributing

Review the guidelines for contributing

License

MIT License

Jam Risser © 2018

Changelog

Review the changelog

Credits

Support on Liberapay

A ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.

Add some fuel if you'd like to keep me going!

Liberapay receiving Liberapay patrons

Keywords

react-router-defer

FAQs

Package last updated on 01 Nov 2018

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