Socket
Socket
Sign inDemoInstall

react-space-router

Package Overview
Dependencies
7
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-space-router

Space router bindings for React.


Version published
Weekly downloads
73
decreased by-67.12%
Maintainers
1
Install size
3.94 MB
Created
Weekly downloads
 

Changelog

Source

0.3.0

  • Upgrade to the latest space-router which allows navigate to take a string url
  • Align useLink API with the rest of the router, it takes a string or an object now, which is the same as how navigate works

Readme

Source

react space router logo, a skeleton floating in space with a react logo for the head

React Space Router

Space Router bindings for React

React Space Router is a set of hooks and components for keeping your app in sync with the url and performing page navigations. A library built by and used at Humaans.

  • React hooks based
  • Nested routes
  • Async navigation middleware
  • Built in query string parser
  • Supports external stores for router state
  • Scrolls to top after navigation
  • Preserves cmd/ctrl/alt/shift click and mouse middle click

Why

"Perfection is achieved when there is nothing left to take away." React Space Router is built upon Space Router, a framework agnostic tiny core that handles url listening, route matching and navigation. React Space Router wraps that core into an idiomatic set of React components and hooks. The hope is you'll find React Space Router refreshingly simple compared to the existing alternatives, while still offering enough extensibility.

Install

$ npm install react-space-router

API

See the API Docs for more details.

Keywords

FAQs

Last updated on 13 Nov 2021

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc