TLDR Web Dev · ARTICLES & TUTORIALS
COMPONENTS ARE JUST SPARKLING HOOKS
Summary from the TLDR Web Dev newsletter
Components and hooks are closely related in React. Components are a subtype of hooks since they inherit the Rules of Hooks and must return a ReactNode. By converting a component into a hook, there is more flexibility in managing state and behaviors separately from UI rendering, allowing for patterns like headless components.