DEV Community


React Hooks notes

arung86 profile image Arun Kumar G ・1 min read

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.

Discussion (0)

Forem Open with the Forem app