From 7b819f354610d5102dc4c707cee2167eef7fbf47 Mon Sep 17 00:00:00 2001 From: Claudia Meadows Date: Sat, 31 Aug 2024 22:07:21 -0700 Subject: [PATCH] Update vnodes.md --- docs/vnodes.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/vnodes.md b/docs/vnodes.md index b474ebde4..146932718 100644 --- a/docs/vnodes.md +++ b/docs/vnodes.md @@ -116,7 +116,7 @@ When creating libraries that emit vnodes, you should use this module instead of Vnodes are supposed to represent the state of the DOM at a certain point in time. Mithril.js's rendering engine assumes a reused vnode is unchanged, so modifying a vnode that was used in a previous render will result in undefined behavior. -It is possible to reuse vnodes in place to prevent a diff, but it's preferable to use the [`onbeforeupdate`](lifecycle.md#onbeforeupdate). +It is possible to reuse vnodes in place to prevent a diff, but it's preferable to use the [`onbeforeupdate`](lifecycle-methods.md#onbeforeupdate). #### Avoid passing model data directly to components via attributes @@ -174,4 +174,4 @@ var BetterListComponent = { })) } } -``` \ No newline at end of file +```