This post will help you gain clarity of the useState hook, and related concepts such as rendering, batching, updater function and the initializer function. Source: https://www.codementor.io/gauravdgr81codementor/the-usestate-hook-a-comprehensive-guide-1w5d2830bm