reading-notes


Project maintained by mr-atta Hosted on GitHub Pages — Theme by mattgraham

Hook


<hr>

Review, Research, and Discussion

How does React differ from vanilla JS/HTML/CSS❓ 📁

What is the primary difference between a function component and a class component❓ 📁

function component vs class component



hooks vs class

hooks vs class

Why Hooks?

very common ases:

  1. Huge components that are hard to refactor and test.
  2. Duplicated logic between different components and lifecycle methods.
  3. Complex patterns like render props and higher-order components.

Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.

Basic Hooks

Additional Hooks



📁making sense of hooks
📁the state hook
📁hooks api
📁hooks api reference