Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Ask HN: Can someone explain me React Hooks?.
When react executes your component function, it will initialize a context (a big array) and each hook will be linked to an index in this context.
So, while being nearly pure, we can describe side effect but only for the provided context.
There are no comments on this comment yet.
When react executes your component function, it will initialize a context (a big array) and each hook will be linked to an index in this context.
So, while being nearly pure, we can describe side effect but only for the provided context.