meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

React Hooks - 1 Year Later

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.91.2K Ratings

🗓️ 18 March 2020

⏱️ 61 minutes

🧾️ Download transcript

Summary

In this episode of Syntax, Scott and Wes talk about React Hooks, one year later — what’s changed, how to use them, and more! Sanity - Sponsor Sanity.io is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at sanity.io/create. Get an awesome supercharged free developer plan on sanity.io/syntax. Sentry - Sponsor If you want to know what’s happening with your errors, track them with Sentry. Sentry is open-source error tracking that helps developers monitor and fix crashes in real time. Cut your time on error resolution from five hours to five minutes. It works with any language and integrates with dozens of other services. Syntax listeners can get two months for free by visiting Sentry.io and using the coupon code “tastytreat”. Show Notes 1:26 - Hooks vs Render Props Hooks win hands down useState useReducer useRef useContext useEffect Custom hooks to hide and encapsulate functionality 35:06 - How we use them Scott Index that imports all custom hooks Babel alias to hooks folder Import { useHook } from ‘hooks’ useContextState Wes useResizeObserver useForm useGridRower useWickedFavIcon 45:54 - Which built-in hooks do we not use? useImperativeHandle useCallback useDebugValue 48:22 - Are hooks harder to learn? Wes: Yes — but easier to maintain after the fact Scott: Yes — harder conceptually and initially but easier after concepts are understood 50:29 - Are classes going away? Wes: I say yes Scott: Double yes Links Syntax Ep 092: React Hooks Making setInterval Declarative with React Hooks - Dan Abramov babel-plugin-module-resolver awesome-uses uses.tech ××× SIIIIICK ××× PIIIICKS ××× Scott: Ars Technica War Stories Wes: Mpow CH1 Kids Headphones Shameless Plugs Scott: All Courses - Sign up for the year and save 25%! Wes: All Courses - Use the coupon code ‘Syntax’ for $10 off! Tweet us your tasty treats! Scott’s Instagram LevelUpTutorials Instagram Wes’ Instagram Wes’ Twitter Wes’ Facebook Scott’s Twitter Make sure to include @SyntaxFM in your tweets

Transcript

Click on a timestamp to play from that location

0:00.0

You're listening to Syntax, the podcast with the tastiest web development treats out there.

0:06.0

Strap yourself in and get ready.

0:08.0

Here is Scott Telinsky and West Boss.

0:10.4

Welcome to Syntax, the podcast with the Tastiest web development treats out there. Today we've got a one year later look for you at react hooks. So can you believe it's already been a year Scott that hooks have been out?

0:23.0

Time just flies by. My daughter's not even a year old yet.

0:28.0

So hooks are older than my daughter. I feel like that's crazy.

0:31.0

Your daughter was not even born into a world without hooks.

0:34.6

Yeah, that's wild.

0:35.8

Very wild.

0:36.8

Yeah, so yeah, that's true, neither was my son.

0:41.9

He'll never know a world without hooks.

0:44.0

For the best.

0:47.0

Yeah.

0:48.0

So today what we're going to try to do is just kind of go through hooks again.

0:52.0

We did a show on them when they first came out, but now Scott and I have some serious time using hooks under our belt. So we'll sort of go through them and talk about both what they do as well as like our thoughts on them one year later and whatnot so buckle up for that today. We are sponsored by Sanity which is a structured content

1:14.5

CMS and Century which is going to do all of your error and exception tracking.

1:18.9

Yeah, so shout out to them. So let's let's get right into it. You want to start it off there Scott?

1:25.8

Sure. I thought this would be a nice way to kick it off is how do we feel about sort of what react hooks have been

1:35.2

replacing and functionality-wise what they've largely replaced in our code

1:40.9

base has been render props for me at least.

1:44.4

Most of the things that I used render props for, I now do react hooks.

1:47.6

So much so did that.

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2026.