[ci] format
This commit is contained in:
parent
65277ddda4
commit
92854fadc6
1 changed files with 29 additions and 29 deletions
|
@ -9,7 +9,7 @@
|
|||
_Question:_ Hey, I'm beginning with Astro. I tried to use `document` in my Astro page, but it says that the object doesn't exist. How can I manipulate the DOM?
|
||||
|
||||
| Answer 1 | Answer 2 |
|
||||
| -- | -- |
|
||||
| ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| You can't manipulate the DOM from an Astro file 😂 Astro is a static site builder. | Hey, welcome to the community! <br/> Astro pages and components run on the server. Because of that, you won't have access to everything you're used to when writing JavaScript for the web. You're on the right track, though - you can access `document` from a `<script>` tag in your Astro file. <br/> Check out the docs here, and let me know if you need any more help! https://docs.astro.build/en/core-concepts/astro-components/#client-side-scripts |
|
||||
|
||||
Answer 2 centered the user's feelings and as such, took more effort. However, it made a significant difference. This response:
|
||||
|
|
Loading…
Reference in a new issue