Have you wondered why sometimes the state in React is not updated immediately? Sometimes you increment a counter state and still the state does not show the incremented value immediately. Let's understand this behavior of the useState function by tak...