I replaced useState hook with custom one
Repetition of defining useState hook for many different primitives were puzzling me for quite long time, until I came up with custom implementation of it.
Tags: javascript, react, hooks, webdev