9 ms·
No, React was created in opposition to the fact that we used to manually update the DOM because that's all we had tools for.
by couchand 7y ago
No, React was created in opposition to the fact that we used to manually update the DOM because that's all we had tools for.
- PKop 7y agoRethinking best practices absolutely addressed misapplication of separation of concerns. https://www.youtube.com/watch?v=x7cQ3mrcKaY https://www.youtube.com/watch?v=x7cQ3mrcKaY Components have always had JSX markup along with data manipulation logic. CSS in JS and styling co-located with component extended this consolidation of cross-cutting concerns. These, along with not manually updating DOM state as you mention, all fall under declarative aspects of React.. which concurrent rendering and Suspense are consistent with and essentially an extension of.
- mosdl 7y agoNo, React was created to allow contractors to write code fast and not worry about optimization.