Strict

Prevent UseEffect Hook Called Twice
2 minutes

Two years ago, the folks released React version 18 and made changes to Strict Mode.

… React 18 introduces a new development-only check to Strict Mode. This new check will automatically unmount and remount every component, whenever a component mounts for the first time, …