Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Or just use any modern DOM-manipulating JavaScript framework like React - in effect putting an `<svg>` tag in very cacheable JavaScript. <div style={...}><p className="...">...</p><svg viewBox="..."><g fill="...">...</g></svg></div>, whichever.

It's a first class citizen, put it in a React Component, anything goes. Cacheable, stylable, and dimensional.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: