docs: update `create` -> `createRoot` (#9750)

dynamic-component-types
Ignatius Bagus 1 year ago committed by GitHub
parent 61e5e53eee
commit d19e622e90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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. * 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<string, any>} Props * @template {Record<string, any>} Props
* @template {Record<string, any> | undefined} Exports * @template {Record<string, any> | undefined} Exports

Loading…
Cancel
Save