React Hooks, how to prevent unnecessary rerendering – Reactjs
I have a hook that gets data from another hook const useIsAdult = () => { const data = useFormData(); return data.age > 18; } This hook returns true or false only, however the useFormData is constantly being updated. Everytime…