-
Notifications
You must be signed in to change notification settings - Fork 106
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
update peer dependency to React 18 #98
Comments
I had the same problem with React 18 and found this fix:
Next, here's the JSONEditorComponent:
In this TypeScript version, we have defined an interface JSONEditorComponentProps for the props that the JSONEditorComponent accepts, and we've used React.FC to define the type of the component. Also, jsonEditor and containerRef variables are defined with their specific types. Here is how you can use the JSONEditorComponent:
|
Came to request the same thing. This is a great package - thanks to the devs working on it! |
this was very helpful thanks |
This almost feels like it should just be a new repo / npm package :D Thanks for the sample code, working on a slightly modified version that enables you to pass in options, utilize onChange and value in a react controlled input fashion. |
Ended up just going with a custom js and no longer using jsoneditor-react, can see source here if interested: |
Thanks, this was really useful. I've updated it to be able to extract the data out on every keypress:
|
can please update the dependency to be compatible to the lastest version of react (18). Otherwise npm i fails with latest npm.
The text was updated successfully, but these errors were encountered: