Closed Ribesg closed 6 years ago
This may either be linked to this issue https://github.com/ctrlplusb/react-sizeme/issues/98 or maybe react-sizeme does not support svg
as a root element.
As far as I know, the faux DOM element doesn't change... Right?
In fact this is a non-problem because of this https://github.com/ctrlplusb/react-sizeme/issues/128 I missed the fact that react-sizeme REQUIRES your component to render a "free" root, so the non-working code provided here will never work with react-sizeme anyway.
First, thanks for this awesome library!
Issue
This works: https://codesandbox.io/embed/2ovl7qpz1n This doesn't work: https://codesandbox.io/embed/0318mwk53p
The only difference is on line 26. I don't think I understand the error, but maybe there is something the fake DOM of react-faux-dom doesn't implement?
References
Error:
Working code:
Non-working code: