-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrapping in React Component #4
Comments
I created a sandbox based on your code example, it all seems to work just fine: https://codesandbox.io/s/svelte-jsoneditor-react-59wxz?file=/src/App.js |
thank you @josdejong - your slight changes made a difference. https://codesandbox.io/s/svelte-jsoneditor-react-forked-p48uq |
Ah, ok good to hear it works for you now! Thanks for sharing your updated sandbox. |
Is creating a ref necessary in the posted codesandbox examples when implementing this in react? |
Yes. Try to do it without a ref it and you'll find out very soon :) |
Attempting to wrap in a React component. I'm able to get it to display, although not perfectly. But then after a couple seconds it generates an error:
TypeError: Cannot read property 'ownerDocument' of undefined
Here is the code in the wrapper:
Any one more advanced with React able to get this working?
The text was updated successfully, but these errors were encountered: