marcveens / react-drawio

React component for integrating the Diagrams (draw.io) embed iframe
MIT License
43 stars 8 forks source link

Warning: React.jsx #3

Closed wkylin closed 11 months ago

wkylin commented 11 months ago

Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

marcveens commented 11 months ago

Thanks for reporting this issue! I forgot to update the readme with the correct import, so I just changed it. No need for updating the package, you need to import DrawIoEmbed instead of DiagramsEmbed.

Here's a working example: