react-svg-morph
react-svg-morph copied to clipboard
Uncaught TypeError: instance.render is not a function renderToJson.js:24
Uncaught TypeError: instance.render is not a function renderToJson.js:24
I followed the docs but get this error. I even made the simplest case but still am getting it. Any ideas?
width, height, and this.state.waveState are all defined
+1
@jdobrowner @daveranan The issue has something to do with the react icons package from what I can tell. Anytime I use custom svg's, or components from another package I don't run into this error.
In my case, this error happened because I was using icons defined as functional react components. Converting the icons to classes fixed the error.
EDIT: react-svg-morph-2 works with icons defined as functional react components
No such thing @jcmnunes