diff --git a/README-VANILLA.md b/README-VANILLA.md index a4467d14..83e9cd48 100644 --- a/README-VANILLA.md +++ b/README-VANILLA.md @@ -38,17 +38,17 @@ If you have a setup for your project with a bundler (like Vite, Rollup, or Webpa ```ts // for use in a React, Vue, or Angular project -import { JSONEditor } from 'vanilla-jsoneditor' +import { createJSONEditor } from 'vanilla-jsoneditor' ``` If you want to use the library straight in the browser, use the provided standalone ES bundle: ```ts // for use directly in the browser -import { JSONEditor } from 'vanilla-jsoneditor/standalone.js' +import { createJSONEditor } from 'vanilla-jsoneditor/standalone.js' ``` -The standalone bundle contains all dependencies of `vanilla-jsoneditor`, for example `lodash-es` and `Ajv`. If you use some of these dependencies in your project too, it means that they will be bundled twice in your web application, leading to a needlessly large application size. In general, it is preferable to use the default `import { JSONEditor } from 'vanilla-jsoneditor'` so dependencies can be reused. +The standalone bundle contains all dependencies of `vanilla-jsoneditor`, for example `lodash-es` and `Ajv`. If you use some of these dependencies in your project too, it means that they will be bundled twice in your web application, leading to a needlessly large application size. In general, it is preferable to use the default `import { createJSONEditor } from 'vanilla-jsoneditor'` so dependencies can be reused. ## Use (Browser example loading the ES module) @@ -62,11 +62,11 @@ The standalone bundle contains all dependencies of `vanilla-jsoneditor`, for exa