Skip to content

Commit 48f0508

Browse files
committed
feat: add patch excalidraw
1 parent 7ffb221 commit 48f0508

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

public/mount.excalidraw.png

81.8 KB
Loading

public/patch.excalidraw.png

85.4 KB
Loading
-1.65 KB
Loading

public/vnode-to-dom.excalidraw.png

-32.7 KB
Binary file not shown.

slides.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2205,9 +2205,9 @@ transition: fade-out
22052205

22062206
前面我们实现了 **响应式系统****编译**(丐中丐版),已经有能力将模板编译成渲染函数了,现在我们将它们整合起来,同时为了能将代码跑起来,我们还需要稍微简单实现下 **挂载**
22072207

2208-
过程如下图所示:
2208+
如下图所示:
22092209

2210-
<img src="/public/vnode-to-dom.excalidraw.png" />
2210+
<img src="/public/mount.excalidraw.png" />
22112211

22122212
---
22132213

@@ -2409,6 +2409,10 @@ createApp({
24092409

24102410
接下来我们来简单优化下,实现一个简单的 `patch` 函数,用来对比新旧节点,只更新需要更新的部分。
24112411

2412+
如下图所示:
2413+
2414+
<img src="/public/patch.excalidraw.png" />
2415+
24122416
---
24132417

24142418
## Counter 计数器

0 commit comments

Comments
 (0)