NoteThis is useful for preventing useEffect logic from running on the initial mount, such as skipping an API call or an animation when the component first appears.
Utilizes a useRef to persist a boolean flag that is only true during the very first render. Subsequent re-renders will always return false. This is particularly useful for skipping useEffect logic on mount or triggering "Welcome" animations.
| Name | Type | Description |
|---|---|---|
| isFirstRender | boolean | true only on the initial render of the component. |