dy / unihooks

Universal unreacted hooks
MIT License
21 stars 1 forks source link

2.0 #34

Closed dy closed 4 years ago

dy commented 4 years ago

Criticism

In result, stable hooks are:

dy commented 4 years ago

At core, there's useValue with varying effects. useLocalStorage = useValue + init/persist to local storage useStore = useValue with customizable persistency and initialization useChannel = useValue with broadcasting value between channels useGlobalCache = useValue with persistency/read from globals useFormField = useValue with (optional) binding value to input: init from input, observe input, write to input;

dy commented 4 years ago

Done. v2.0 contains only essential hooks.