Amritpal Singh’s Post

React 19 just killed useMemo and useCallback. Let that sink in for a second. The new React Compiler automatically figures out what needs memoization. No more wrapping every other function in useCallback like a paranoid developer at 3 AM. I've spent embarrassing amounts of time debugging stale closures from bad memoization. Gone. Here's what actually matters in React 19: → The Compiler rewrites your code for performance behind the scenes. Instagram already runs on it. Early numbers show ~2x rendering speed. → forwardRef is dead. ref is just a prop now. Finally. → <Context.Provider> becomes just <Context>. Small change, but honestly? It's the little things. → Server Components ship for real this time. Faster first paint, better SEO, less client-side JavaScript. → Actions let you slap a function on a <form> and handle mutations without the usual boilerplate dance. The one that caught me off guard: useOptimistic. You set state optimistically on the client, and if the server disagrees, it just rolls back. No manual error handling gymnastics. Also React.lazy is getting replaced by promise-as-child syntax inside Suspense. Cleaner async loading without the wrapper. Real talk — this is the biggest single-version jump React has made since hooks dropped in 16.8. What feature are you most excited about (or most skeptical of)? #reactjs #webdev #javascript

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories