The Startup
Published in

The Startup

React: What Are Hooks and Why Should You Use Them?

Hooks in React allow for state and other React features to be used in functional components. Why is this important? Let’s first cover the difference between a functional component and a class component. Functional components are as the name suggests, for functions. Class components are responsible for rendering the page and keeping up to date with any interaction. Before hooks came along, if you wanted…




Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

Reusing Access Tokens in Firebase with React and Node

When should you Use Nuxt.js instead of Vue.js?

Disabling Form Controls When Working With Reactive Forms in Angular

Coding @Austin Coding Academy

Integrating D3 with Tableau

How to create a Sub Account on FTX

Weekly picks by Ali Alohali — مختارات اسبوعيه بواسطة علي العوهلي — Issue #6

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
Jonathan Wong

Jonathan Wong

Flatiron School Alumni & Software Engineer

More from Medium

How to Craft Excellent Bug Reports

How Do React State Management Tools Like Redux, Recoil Actually Work?

How to Create Custom ESLint Rules in 5 Minutes

React Custom Hooks ( What they are, why they are needed and how to create them