News for hackers. Stuff that matters.
Re:Epoch – A real-time charting library by fletchowns on Thursday June 26, 2014 @02:48PM (#7951017)
Isn't SVG part of the DOM though?
Re:Epoch – A real-time charting library by nilkn on Thursday June 26, 2014 @04:30PM (#7951443)
I'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.
Re:Epoch – A real-time charting library by haberman on Thursday June 26, 2014 @05:15PM (#7951601)
Exactly. 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