3 ms·
Isn't SVG part of the DOM though?
by fletchowns 12y ago
Isn't SVG part of the DOM though?
- nilkn 12y agoI've never used React, but I believe it maintains a virtual DOM and uses it to compute the minimal number of changes that need to be enacted on the browser's DOM. So basically, it's precisely because SVG is part of the DOM that it could potentially be a good application of React.
- haberman 12y agoExactly. The React paradigm is to never mutate the DOM directly, but instead let React mutate it. I wrote a friendly intro here: http://blog.reverberate.org/2014/02/react-demystified.html http://blog.reverberate.org/2014/02/react-demystified.html