DEV Community

Arun Kumar G
Arun Kumar G

Posted on

3

React Hooks notes

Hooks are new additions to react in 16.8.0

Hooks are basically a JavaScript functions

They let you hook(application business logic) into react state and lifecycle features from function components.

Hooks can only be used inside function components,

Hooks make FCs state rich.

You can create your own hooks

Without hooks today Its difficult to share state-full logic in a class based component, which is made easy.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay