Why Signals Are Better Than React Hooks

October 31 2023, 12:00pm

Hooks in React are tricky to use correctly and even harder to use in a performant way. This has left many applications with poor code quality and bad performance, but that doesn’t have to be the case anymore. Signals is a technique that has been around for decades, but only recently has made its way to React and it makes creating performant clean code in React much easier. In this video I explain exactly how signals work and why they are so great.

📚 Materials/References:

Preact Signals Library: https://preactjs.com/blog/introducing-signals/

🌎 Find Me Here:

My Blog: https://blog.webdevsimplified.com My Courses: https://courses.webdevsimplified.com Patreon: https://www.patreon.com/WebDevSimplified Twitter: https://twitter.com/DevSimplified Discord: https://discord.gg/7StTjnR GitHub: https://github.com/WebDevSimplified CodePen: https://codepen.io/WebDevSimplified

⏱️ Timestamps:

00:00 - Introduction 00:57 - Demo 02:18 - The Problem With Hooks 04:12 - Why Signals Are Great 05:40 - Basic Signals 11:15 - Advanced Signals

ReactSignals #WDS #ReactJS