Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Making SetInterval Declarative with React Hooks. Parent comment
function useEffectOnce(callback) { useEffect(() => { return callback() }, []) }
There are no comments on this comment yet.
function useEffectOnce(callback) { useEffect(() => { return callback() }, []) }