3 ms·
Could you go into detail? To me it seems like the same concepts exist in Vue: useState -> ref useEffect -> watchers useRef -> template-refs The only differe
by SebastianKra 2y ago
Could you go into detail? To me it seems like the same concepts exist in Vue:
useState -> ref
useEffect -> watchers
useRef -> template-refs
The only difference I see, is that Vue rerenders nothing by default whereas React rerenders everything by default. And I admittedly agree with Vue on this one, but it's not enough to make me give up the superior ecosystem and JSX.
The boilerplate for creating computed's is comparable to setting up useMemo calls. And oh look: the justification for computed is exactly the same as useMemo/useCallback: https://vuejs.org/guide/essentials/computed.html#computed-caching-vs-methods https://vuejs.org/guide/essentials/computed.html#computed-ca...