@gamedev-sensei/react-extras
v2.1.0
Published
Provides some useful ReactJs hooks:
Readme
@gamedev-sensei/react-extras
Provides some useful ReactJs hooks:
useDerived- works the same as theuseMemohook, but guarantees that the value will not be recomputed unless the dependencies change. You can specify a custom comparison function as the third parameter.useMount- works as the same as theuseEffecthook, but you cannot specify the dependencies and the callback is run on component mount.
Installation
Yarn:
yarn add @gamedev-sensei/react-extrasNpm:
npm i @gamedev-sensei/react-extras