From ba54724d0fa7d1d807368e2cf0fcee2e3b8b50fd Mon Sep 17 00:00:00 2001 From: Ignatius Bagus Date: Mon, 4 Dec 2023 15:49:45 +0700 Subject: [PATCH] docs: update `create` -> `createRoot` --- packages/svelte/src/internal/client/render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte/src/internal/client/render.js b/packages/svelte/src/internal/client/render.js index 79a891acd6a0..c23b38de5a05 100644 --- a/packages/svelte/src/internal/client/render.js +++ b/packages/svelte/src/internal/client/render.js @@ -3028,7 +3028,7 @@ export function createRoot(component, options) { /** * Mounts the given component to the given target and returns the accessors of the component and a function to destroy it. * - * If you need to interact with the component after mounting, use `create` instead. + * If you need to interact with the component after mounting, use `createRoot` instead. * * @template {Record} Props * @template {Record | undefined} Exports