Skip to content

Commit cbb269e

Browse files
committed
docs(core): fix readme example again
1 parent f823f16 commit cbb269e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/svelte-core/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ export const render = <C extends SvelteCore.Component>(
4545
Component: SvelteCore.ComponentImport<C>,
4646
options: SvelteCore.ComponentOptions<C>
4747
): RenderResult<C> => {
48-
const { component, container, rerender, unmount } = SvelteCore.render(
49-
Component,
50-
options
51-
)
48+
const { baseElement, component, container, rerender, unmount } =
49+
SvelteCore.render(Component, options)
50+
5251
const queries = bindQueries(baseElement)
5352

5453
return { component, container, rerender, unmount, ...queries }

0 commit comments

Comments
 (0)