npm.io
0.0.2 • Published 7 years ago

react-router-screen-id

Licence
ISC
Version
0.0.2
Deps
1
Size
29 kB
Vulns
1
Weekly
0
Stars
1

Greenkeeper badge

A proof of concept that introduces the concept of a 'screen id' in React, when using React Router.

A "screen id" is a unique identifier that is:

  • generated when a user navigates to a new route
  • stays the same while the user stays on the same route

This library will offer the following functionality:

  • made available to child components via the context api
  • works in universal applications where the screen id is initially generated on the server and then made available to the client
  • ability to manually create a new screen id for the current route

Keywords