The correct syntax for useEffect is useEffect(callbackFunction, [dependencies]), where callbackFunction is the function containing the side effect, and dependencies are optional values that, when changed, will trigger the effect to re-run.