i think it's good to know them because it helps you map how components, function, props and state interact with one another and what happens in some specific cases.
If you're still learning Reactjs, is it a good idea to learn useCallback(), useMemo() knowing that it will no longer be required in React 19 ?
what are your thought on this ?
@Fausto95_@buhama_ Depends on the use case. It wonβt just be one replacement. For example, users of frameworks like Next.js and Remix rarely need useEffect because data fetching is managed by the router.
More about this topic here: https://t.co/94lj8uuDmj
By the end of 2024, youβll likely never need these APIs again:
β’ useMemo, useCallback, memo β React Compiler
β’ forwardRef β ref is a prop
β’ React.lazy β RSC, promise-as-child
β’ useContext β use(Context)
β’ throw promise β use(promise)
β’ <Context.Provider> β <Context>