From 5709268ae608324769ac5e607c471aab0be8833a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=88=90=E5=85=83?= <30282501+Allihol@users.noreply.github.com> Date: Sun, 15 Sep 2024 15:13:56 +0800 Subject: [PATCH] fix: createVnode() -> createVNode() --- src/guide/extras/render-function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/extras/render-function.md b/src/guide/extras/render-function.md index f6386f39d8..2450938ac8 100644 --- a/src/guide/extras/render-function.md +++ b/src/guide/extras/render-function.md @@ -26,7 +26,7 @@ const vnode = h( ) ``` -`h()` is short for **hyperscript** - which means "JavaScript that produces HTML (hypertext markup language)". This name is inherited from conventions shared by many virtual DOM implementations. A more descriptive name could be `createVnode()`, but a shorter name helps when you have to call this function many times in a render function. +`h()` is short for **hyperscript** - which means "JavaScript that produces HTML (hypertext markup language)". This name is inherited from conventions shared by many virtual DOM implementations. A more descriptive name could be `createVNode()`, but a shorter name helps when you have to call this function many times in a render function. The `h()` function is designed to be very flexible: