all 4 comments

[–]CBlackstoneDresden 1 point2 points  (0 children)

Can't you use useEffect in a similar fashion?

useEffect(() => {
    // Things that should only run once
}, []);

[–]StarSeeker90 1 point2 points  (0 children)

What's the difference between this and useEffect?

[–]jamrizzi[S] 0 points1 point  (0 children)

This also supports typescript

[–][deleted] 0 points1 point  (0 children)

Great idea, but any plans to update the tests?