Sign in

Sergiu Breban
React Hooks — Functional Components
React Hooks — Functional Components

React hooks API provides functionality for flow control, state management, and component lifecycle when using functional components.

Rules are simple:

You cannot call hooks from a regular JavaScript function.

You can call hooks only inside React function components or custom hooks

Hooks are functions that always starts with “use” word followed by a “superpower”.

There are several built-in React hooks and you can compose them into custom hooks for a specific use case in your application. …

Sergiu Breban

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store