0.4.2 • Published 6 years ago

react-router-defer v0.4.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.1

6 years ago