react-vega
react-vega copied to clipboard
Re-rendering with className causes react-embed to lose styling
Hello!
Noticed that due to the way react-embed applies the className to the parent dom node, if a component re-renders and it uses the className prop on ReactVega it causes the react-embed
className to be dropped. You can see an example here in codesandbox if you add className="hi"
the embed styling gets dropped. A work around for us is we can add a wrapper div and not apply a className to this component.