MemotivaReact Hooks Basics

What is a custom hook?

React Hooks Basics

Audio flashcard · 0:11

Nortren·

What is a custom hook?

0:11

A custom hook is a JavaScript function whose name starts with use and that can call other hooks. It lets you extract and reuse stateful logic between components without changing their structure or introducing wrapper components.