unhook
Unleash react/preact hooks from components, make them available in regular javascript without hooks limitations.
{ let count setCount = }
Internally, unhook uses error.stack
, which is non-standard, but well supported by all browsers/engines for a long time.
For production, it is possible to statically compile source to avoid using error.stack
. (pending feature...)
See also
- enhook - turn a function into hooks-enabled function.
- any-hooks - obtain any installed hooks.
- unihooks - collection of universal hooks
- remorph - react-based morphdom
HK