The Magic of Signals: Or Why React Does Not Support Them. Yet.

Magicians do not reveal their tricks; Well, I’m not a magician, so you will discover the trick of signals.

David Rodenas PhD

--

The first time I heard about Signals was in this tweet from Miško Hevery (the creator of Angular). He summarized them as a combination of useState, useRef, and useMemo:

Although it looks great, it doesn’t make sense at first glance. So, I did not understand what he meant. I have a great respect for him, I am really quite a fan of all his job and trajectory, even prior to Angular. So, I continued reading that thread. However, in the next tweet, I found the following code:

My impression was devastating. It was like seeing a hero falling. Why did he make React example so overly complex? It made no sense at all. There is no need for the “useRef”, neither for “useEffect”. Just a…

--

--

David Rodenas PhD
David Rodenas PhD

Written by David Rodenas PhD

Passionate software engineer & storyteller. Sharing knowledge to advance our skills. Join me on a journey of discovery in the world of software engineering.