refactor: clean code
This commit is contained in:
parent
7989fe90c8
commit
abe1e9d2d2
1 changed files with 3 additions and 3 deletions
|
@ -14,12 +14,12 @@ export type Data = typeof data;
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { deserialize } from '../deserialize';
|
import { deserialize } from '../deserialize';
|
||||||
import {Data} from './index.astro';
|
import {Data} from './index.astro';
|
||||||
const data = deserialize<Data>('my-data');
|
|
||||||
|
|
||||||
|
const data = deserialize<Data>('my-data');
|
||||||
console.log(data);
|
console.log(data);
|
||||||
const renderDiv = document.querySelector('#render-here');
|
const renderDiv = document.querySelector('#render-here');
|
||||||
if (renderDiv) {
|
if (renderDiv) {
|
||||||
renderDiv.innerHTML = JSON.stringify(data)
|
renderDiv.textContent = JSON.stringify(data)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue