DEV Community

Discussion on: Your thoughts on React Hooks

harkinj profile image

One other thing that springs to mind with hooks is that they feel 'circular' e.g SetwidthHook - when user changes the width the handler runs inside the hook (so some code of the hook is executing), state is updated, the component re-renders and the whole hook is executed.