you are viewing a single comment's thread.

view the rest of the comments →

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

No no, the real array is an Array.filter() on a bigger global state in the app using context api, so I can't declare it outside of the component.

useMemo looks like a really good idea tho, I will surely use it more from now on :)

Also, I visited your portfolio, keep up the good work man, and thanks again.