The library provides a vanilla bundle of the editor via the npm libraryvanilla-jsoneditor(instead ofsvelte-jsoneditor) which can be used in any browser environment and framework. In a framework like React, Vue, or Angular, you'll need to write some wrapper code around the class interface. I...
// for use in a React, Vue, or Angular project import { JSONEditor } from 'vanilla-jsoneditor'If you want to use the library straight in the browser, use the provided standalone ES bundle:// for use directly in the browser import { JSONEditor } from 'vanilla-jsoneditor/standalone.js...
The library provides a vanilla bundle of the editor via the npm libraryvanilla-jsoneditor(instead ofsvelte-jsoneditor) which can be used in any browser environment and framework. In a framework like React, Vue, or Angular, you'll need to write some wrapper code around the class interface. I...
// for use in a React, Vue, or Angular project import { JSONEditor } from 'vanilla-jsoneditor'If you want to use the library straight in the browser, use the provided standalone ES bundle:// for use directly in the browser import { JSONEditor } from 'vanilla-jsoneditor/standalone.js...
Vanilla bundle (use in React, Vue, Angular, plain JavaScript, ...)The library provides a vanilla bundle of the editor via the npm library vanilla-jsoneditor (instead of svelte-jsoneditor) which can be used in any browser environment and framework. In a framework like React, Vue, or ...
React example:https://codesandbox.io/s/svelte-jsoneditor-react-59wxz Vue example:https://codesandbox.io/s/svelte-jsoneditor-vue-toln3w Svelte usage Create a JSONEditor with two-way bindingbind:json: import{JSONEditor}from'svelte-jsoneditor'letcontent={text:undefined,// can be used to pass ...