@upgrowth/reactkit

1.0.7 • Public • Published

@upgrowth/reactkit

ReactKit is a set of basic web react utility components and high order components

Router Components

React-router makes is hard to do some basic things, so we've wrapped it to have a more team scalable API.

  • Routes - sits inside a router and defines all the routes in one place identified by name, so you don't have to ${match.params.blah}/... everything
  • Route - wraps react router Route but allows you to use a named route, rather than absolute path
  • Link - wraps react router Link allowing you to link by a name, rather than absolute path
  • NavLink - wraps react router NavLink allowing you to link by a name, rather than absolute path
  • Switch - fundamentally necessary because of how react router works, wrapped to support named routes
  • Redirect - wraps react router Redirect allowing you to redirect by name
  • ScrollToTopOnNav - scrolls the main viewport when the route changes
  • RouteObserver - triggers a method when the route/location changes
  • withParams - HoC to bind route params to props

Readme

Keywords

none

Package Sidebar

Install

npm i @upgrowth/reactkit

Weekly Downloads

0

Version

1.0.7

License

MIT

Unpacked Size

48.4 kB

Total Files

27

Last publish

Collaborators

  • atomicleopard
  • lfs