4 ms·
It's always worked. The way to do it with function based components is slightly different but the effect is the same. But this class based component method ha
by nightski 6y ago
It's always worked. The way to do it with function based components is slightly different but the effect is the same. But this class based component method has worked forever.
I think people think because they are using React it's horrible if they let something else change the DOM. But in reality I do this all the time with D3. Yes you can render SVG with React and get it to work with D3 that way. But honestly I found it a lot cleaner to just let D3 takeover the rendering. This let me work directly from samples on the web without much translating to get it to work in React.