Skip to content

How cards render

Each card mounts its component on its own small page.

Your app does not run around a card: not the root layout, not the router shell, not the <head> of index.html or of the root route, not the providers your app wraps its pages in.

So anything a component gets from the app (fonts, global CSS, a theme, router or data context, a signed-in user) has to be given to the canvas too. That is what .canvas/setup.tsx is for.