@history-navigation/react-history

1.0.0-alpha.0 • Public • Published

@history-navigation/react-history

Hooks to easily integrate with react with history module for transition animations when navigating back and forward

Install

$ npm i @history-navigation/react-history
$ yarn add @history-navigation/react-history

API

Table of contents

class RoutingNavigation

Parameter Type Description
props.history History browser history instance from history npm module
props.chilren func Children function

Returns: jsx


function useRoutingNavigation

Parameter Type Description
history History browser history instance from history npm module

Returns: Movement — The movement state

Examples

const { wasForward, wasBackward, steps } = useRoutingNavigation(history);

Readme

Keywords

none

Package Sidebar

Install

npm i @history-navigation/react-history

Weekly Downloads

2

Version

1.0.0-alpha.0

License

MIT

Unpacked Size

44.6 kB

Total Files

23

Last publish

Collaborators

  • kamikazept