Skip to content

Commit b13f284

Browse files
committed
fix h3
1 parent e328de6 commit b13f284

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎apps/codingcatdev/src/content/course/sveltekit-firebase/lesson/2_13-component-lifecycle.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ The creation phase is the first phase of the Svelte component lifecycle. It occu
2121

2222
The following lifecycle hooks are available during the creation phase:
2323

24-
### `oncreate()`
24+
`oncreate()`
2525

2626
This hook is called once after the component is created and the DOM elements are added to the page. It is the ideal place to perform any initialization tasks that require access to the DOM, such as setting up third-party libraries or adding event listeners.
2727

28-
### `beforeUpdate()`
28+
`beforeUpdate()`
2929

3030
This hook is called before the component is updated with new data. It is an ideal place to perform any preparation work before the component's state changes.
3131

@@ -35,11 +35,11 @@ The update phase is the second phase of the Svelte component lifecycle. It occur
3535

3636
The following lifecycle hooks are available during the update phase:
3737

38-
### `onupdate()`
38+
`onupdate()`
3939

4040
This hook is called after the component's state changes, and the DOM is updated. It is an ideal place to perform any post-update tasks that require access to the DOM.
4141

42-
### `afterUpdate()`
42+
`afterUpdate()`
4343

4444
This hook is called after the `onupdate()` hook and is an ideal place to perform any post-update tasks that do not require access to the DOM.
4545

@@ -49,7 +49,7 @@ The destruction phase is the final phase of the Svelte component lifecycle. It o
4949

5050
The following lifecycle hook is available during the destruction phase:
5151

52-
### `ondestroy()`
52+
`ondestroy()`
5353

5454
This hook is called once, just before the component is destroyed. It is an ideal place to perform any cleanup tasks, such as removing event listeners, clearing timeouts or intervals, or disposing of any resources.
5555

0 commit comments

Comments
 (0)