React Hooks: Why We should Embrace it

No more wrapper hell

Typical thing that happens in React app
using HOC

Effect Hook

Need to handle in both didMount and didUpdate. (source: React docs)
Logic in one place. (source: React docs)
Easy optimization. (source: React docs)

Allow your code to be minified better

Summary

--

--

--

I play around with JavaScript and all-things-web 🌐 | https://jackyef.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

JSX vs HTML

Resources for React Developers

The Galaxy Note is back, it’s just going to be called the “Galaxy S22 Ultra”

Using React with Electron — For Beginners!

header image for the boilerplate consisting of the logos of React and Electron projects

Stress testing your FeathersJS application like in production

Web REST API Benchmark on a Real Life Application

Angular: How to support IE11

Chapter 3: How We Built An iOS App From Scratch In Less Than 90 Days (#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
Jacky Efendi

Jacky Efendi

I play around with JavaScript and all-things-web 🌐 | https://jackyef.com

More from Medium

React Props vs Hooks

Doing React Twice at Flatiron School

Testing React Router Children with react testing Library

Why you should be hooked on React Hooks!