@sharyn/react-router

Components for React Router.

Usage no npm install needed!

<script type="module">
  import sharynReactRouter from 'https://cdn.skypack.dev/@sharyn/react-router';
</script>

README

🌹 @sharyn/react-router

Components for React Router.

Installation

npm i @sharyn/react-router
# or
yarn add @sharyn/react-router

You can alternatively install the entire sharyn library or individual modules.

Modules

  • PrivateRoute – A Route that redirects unauthenticated users
  • ServerOnlyRoute – A Route that refreshes the page on the client

This package is part of Sharyn, a collection of utilities and helpers.