"Run this once, when the component appears." It's the single most common effect in React — focus an input, fire an analytics event, open a connection, read from a browser API. The idiom everyone reaches for is useEffect with an empty dependency array:

useEffect(() => {

trackPageView("/checkout");

// eslint-disable-next-line react-hooks/exhaustive-deps

}, []);