chore: update readme
This commit is contained in:
parent
658a15c275
commit
197aa06b66
1 changed files with 7 additions and 10 deletions
13
README.md
13
README.md
|
@ -15,7 +15,7 @@ npm i @ayco/astro-resume
|
||||||
|
|
||||||
```astro
|
```astro
|
||||||
---
|
---
|
||||||
import Resumable from '@ayco/astro-resume';
|
import Resumable from "@ayco/astro-resume";
|
||||||
const data = {
|
const data = {
|
||||||
hello: 'world'
|
hello: 'world'
|
||||||
}
|
}
|
||||||
|
@ -23,14 +23,11 @@ const data = {
|
||||||
|
|
||||||
<Resumable id="astro-obj" data={data} />
|
<Resumable id="astro-obj" data={data} />
|
||||||
|
|
||||||
<div id="render-here"></div>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {resume} from '@ayco/astro-resume';
|
import {resume} from '@ayco/astro-resume';
|
||||||
console.log(resume('astro-obj'));
|
console.log(
|
||||||
const renderDiv = document.querySelector('#render-here');
|
resume('astro-obj')
|
||||||
if (renderDiv) {
|
)
|
||||||
renderDiv.innerHTML = JSON.stringify(resume('astro-obj'))
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
```
|
```
|
Loading…
Reference in a new issue