0
1
llucycodes42
This code creates a memo which will call the function first() every time it is invoked. The second argument is an optional function which will be called after first() has completed.
Library: react
Shortcut: use_memo_snippet
useMemo(() => first, [second])