react-router-utilitybelt

0.2.4 • Public • Published

React Router Utility Belt

React Router Utility Belt

Opinionated react-router UI components with unopinionated styling!

React Router Utility Belt Preview

Helps solve some common real world navigation concerns with React Router, like:

  • 💎 Single "source of truth" for route defintions to prevent multiple nav components repeating data
  • 👍 Drawer navigation with automatic grouping and filtering
  • ⚡ Sub navigation generation
  • 🍞 Automatic breadcrumb generation
  • 😮 Render current route information outside your main Route declaration

This example focuses purely on react router concepts. Libraries like connected react router are great but the goal of this project is to allow you to implement React Router without any add on dependencies.

No other 3rd party packages are used so you can reason about what's going on without extra mental tax.

Design Notes

  • 🎁 Built with Create React App
  • 🏆 Best practices React.js
  • 📝 Function components throughout, along with hooks

Requirements

  • 📖 React v16.8+
  • ✏️ AirBNB's ESLint rules applied

Install

To run the demo, git clone and run npm install in both the root and the demo folder which is a stand alone CRA app.

Run npm run demo in the root to launch the demo app.

Walkthrough Video

Watch this video is see it in action and learn how to implement in your projects:

Walkthrough on Youtube

Package Sidebar

Install

npm i react-router-utilitybelt

Weekly Downloads

5

Version

0.2.4

License

MIT

Unpacked Size

776 kB

Total Files

37

Last publish

Collaborators

  • fsjsd