React 19: Prepare your mental!
React 19 is here (almost)
Walao eh, React team really working hard. Just when we get used to hooks, they bring new things again. But don't panic, these changes are actually solid.
The React Compiler (React Forget)
You know how we always write useMemo and useCallback everywhere? Scared unnecessary re-render right?
React 19 comes with a compiler that does this automatically. Yes, AUTOMATICALLY.
Basically, React becoming smart enough to know when to re-render. No need to manual labor anymore.
Actions
Handling forms in React always messy. onSubmit, preventDefault, useState for loading...
Now got Actions. You can pass a function to <form action={action}>.
It handles pending states, errors, and optimistic updates. Macam Next.js Server Actions but for client also can.
Conclusion
React is getting easier for beginners but more complex under the hood. But for us developers, less boilerplate is always good news. Steady!