Manuel Cabrera Coronilla’s Post

One of the cleanest React 19 changes… almost nobody is talking about it For years, we’ve been wrapping everything with .Provider Now? You don’t need it anymore. 👉 In React 19, you can render the context directly That’s it. No extra nesting. No unnecessary boilerplate. Just cleaner React. 💡 This might look small, but it improves readability a lot in real-world apps with multiple providers. ⚠️ Important: This only works in React 19+. Older versions still require .Provider. Curious — how many Providers do you currently have in your app? 👀 #React #Frontend #WebDevelopment #JavaScript #React19 #CleanCode #SoftwareEngineering

  • No alternative text description for this image

I have about 4 or 5 right now (Auth, Theme, and a complex Web Worker Timer context). Wrapping the main <App /> component was starting to look like a massive pyramid! 😂 This, combined with the new use() hook replacing useContext, is going to make the DX so much cleaner

I think zustand it's a better option. You avoid prop drilling and the code it's much cleaner.

What about arrow functions? They're trendy.

See more comments

To view or add a comment, sign in

Explore content categories