3 ms·
Shadow DOM, arguably one of React's biggest innovations, is indeed becoming standardized in browsers: https://www.w3.org/TR/shadow-dom/ https://www.w3.org/TR/sh
by nathancahill 10y ago
Shadow DOM, arguably one of React's biggest innovations, is indeed becoming standardized in browsers: https://www.w3.org/TR/shadow-dom/ https://www.w3.org/TR/shadow-dom/
Edit: Confused Shadow DOM and Virtual DOM.
- niftich 10y agoShadow DOM is the cloaking of the insides of a particular element, and thus a tool for web componentization and encapsulation. IIRC, while React encourages building reusable, encapsulated components, it doesn't hide the internal state from view [1]. Perhaps you're thinking Virtual DOM, which is a technique to apply only diff-ed state changes to the real DOM, which isn't actually standardized (yet), although alternate implementations (outside of React) exist? [1] https://facebook.github.io/react/tips/inline-styles.html https://facebook.github.io/react/tips/inline-styles.html
- nathancahill 10y agoThanks for the correction, confused the two.