Skip to content

Hook responsible for sharing state between various tabs

License

Notifications You must be signed in to change notification settings

josermarinr/hook-cross-tab

Repository files navigation

CI/CD codecov License

hook cros tab

Motivation

this hook help to share state between many tabs, its multipurpose,
the motivation to do this type hook is beacause we arrive a new age when the multiscreen are the normality in this time and we need adapte to that.

To use

call the hook inside the function and you need pass two props,

first the kay of your data, this will be the name of the data will be store

second the data, this hook accepting any type of data

in this repo its use

  const [todos, setTodos] = useCrossTabState("tareas", [])
                                              key       defaultdata

About

Hook responsible for sharing state between various tabs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published