You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/tutorial/01-svelte/07-lifecycle/01-onmount/README.md
+2
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
title: onMount
3
3
---
4
4
5
+
> The images in this exercise don't currently work. You can switch to the old tutorial instead: https://svelte.dev/tutorial/onmount
6
+
5
7
Every component has a _lifecycle_ that starts when it is created, and ends when it is destroyed. There are a handful of functions that allow you to run code at key moments during that lifecycle.
6
8
7
9
The one you'll use most frequently is `onMount`, which runs after the component is first rendered to the DOM.
0 commit comments