Skip to content
This repository was archived by the owner on Aug 18, 2023. It is now read-only.

Commit ede0457

Browse files
committed
readme
1 parent 9933f32 commit ede0457

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,13 @@ export default {
5353
Or install globally:
5454

5555
```ts
56+
import { createApp } from 'vue';
5657
import { SanityBlocks } from 'sanity-blocks-vue-component';
57-
Vue.component(SanityBlocks);
58+
import App from './App.vue';
59+
60+
const app = createApp(App);
61+
app.component('sanity-blocks', SanityBlocks);
62+
app.mount('#app');
5863
```
5964

6065
## Props

0 commit comments

Comments
 (0)