React - Don't update parent state in the rendering phase of the child
TLDR; Don't update parent state in the rendering phase of the child component            Long...
Tags: react, hook, state, effect