chore: update readme

This commit is contained in:
Ayo Ayco 2023-07-16 12:52:04 +02:00
parent 658a15c275
commit 197aa06b66

View file

@ -15,22 +15,19 @@ npm i @ayco/astro-resume
```astro
---
import Resumable from '@ayco/astro-resume';
import Resumable from "@ayco/astro-resume";
const data = {
hello: 'world'
hello: 'world'
}
---
<Resumable id="astro-obj" data={data} />
<div id="render-here"></div>
<script>
import {resume} from '@ayco/astro-resume';
console.log(resume('astro-obj'));
const renderDiv = document.querySelector('#render-here');
if (renderDiv) {
renderDiv.innerHTML = JSON.stringify(resume('astro-obj'))
}
import {resume} from '@ayco/astro-resume';
console.log(
resume('astro-obj')
)
</script>
```