import { useEffect } from 'react'; function MyComponent() { useEffect(() => { // Runs ONCE after initial rendering }, []); }