- accepted / - tried
Create a hook to tell if it is the first render.
function App() { const isFirstRender = useIsFirstRender() // only true for the first render ...}
時間と空間複雑性はどう?
Try it out
Console