From 4e059c951a2f87b63d9664493a6124684e227ab2 Mon Sep 17 00:00:00 2001 From: Jay Brass <92528213+Jemsco@users.noreply.github.com> Date: Mon, 6 May 2024 14:00:28 -0400 Subject: [PATCH] docs: Update getting-started index.mdx to add export default --- packages/docs/src/routes/docs/(qwik)/getting-started/index.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/docs/src/routes/docs/(qwik)/getting-started/index.mdx b/packages/docs/src/routes/docs/(qwik)/getting-started/index.mdx index f87551142e7..1b8fdf46cbf 100644 --- a/packages/docs/src/routes/docs/(qwik)/getting-started/index.mdx +++ b/packages/docs/src/routes/docs/(qwik)/getting-started/index.mdx @@ -107,6 +107,7 @@ export default component$(() => { > NOTE: > > - Your `joke` route default component is surrounded by an existing layout. See [Layout](/docs/layout/) for more details on what layouts are and how to work with them. +> - index.tsx, layout.tsx in routes folder, root.tsx and all entry files need **export default**. For other components you can use export const and export function > - For more details about how to author components, see the [Component API](/docs/(qwik)/components/overview/index.mdx) section. ### 2. Loading Data