Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import {useEffect} from 'react';
function OneRun() {
useEffect(() => {
console.log("Runs only once.")
}, []);
return <div>One run</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment