# LinwitDocEditor integrates with Vue2 In Vue, we use `div` a reference from a `ref` `$refs` property definition and then instantiate with `new LinwitDocEditor` , as shown in the sample code: ```html ``` **Note! Note! Note!** In the process of integrating with vue2, many students may have two solutions to this problem due to the low `Compilation Error` version of vue2: **Scenario 1**: Modify `tsconfig.json` the `esnext` configuration `es2018` of as follows: ```json { "compilerOptions": { "target": "esnext", "module": "es2018" // Other Configurations... } // Other Configurations... } ``` ** Scenario 2:** Upgrade Vue2 to Vue 2.7 or later.