2 ms·
JavaScript can write SVG just like it writes HTML. Your React render() can return <svg><rect ... /></svg> as easily as <div><p>...</p></div>
by remram 5y ago
JavaScript can write SVG just like it writes HTML. Your React render() can return <svg><rect ... /></svg> as easily as <div><p>...</p></div>
- tenaciousDaniel 5y agoYep, svg + react = declarative graphics. I love it. I used it to replace D3 in a project I worked on last year and no regrets at all.