3 ms·
Hooks and components are just functions, a large react codebase has hundreds of functions. Things like HTTP requests and reading from localstorage are good cand
by Xeoncross 4y ago
Hooks and components are just functions, a large react codebase has hundreds of functions. Things like HTTP requests and reading from localstorage are good candidates for custom hooks.