dhanteyud / react_usememo Goto Github PK
View Code? Open in Web Editor NEWuseMemo allows you to memoize expensive functions so that you can avoid calling them on every render. You simple pass in a function and an array of inputs and useMemo will only recompute the memoized value when one of the inputs has changed.