Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Things you forgot because of React. Parent comment
It returns something with the same type you gave it. If you give it a function it gives you a function back.
In typescript it's declared to take a function but in practice it doesn't check, and can be used to stabilize the identity of anything.
useMemo otoh _does_ only take functions.
There are no comments on this comment yet.
It returns something with the same type you gave it. If you give it a function it gives you a function back.
In typescript it's declared to take a function but in practice it doesn't check, and can be used to stabilize the identity of anything.
useMemo otoh _does_ only take functions.