4 ms·
What's a computed ref? Googling it only seems to return a Vue related "getter" concept, and I don't see a use case for that in React. And of course you're right
by dalmo3 2y ago
What's a computed ref? Googling it only seems to return a Vue related "getter" concept, and I don't see a use case for that in React. And of course you're right, React isn't reactive, everything is computed by default :)
- chuckadams 2y agoSee preactjs/signals. Vue calls a Signal a Ref but otherwise the APIs are similar. I imagine there’s an implementation for React too, and one can even use the Vue reactivity API in React, but that’s wandering way off the beaten path for anyone to be learning that way.
- deleted 2y ago[deleted]