I will argue about the core hook useState but i guess it applies the same for custom hooks. Consider this small ReactJS piece of code implementing a simple