First app

Quick Start

A SchildW3rk app has a stable Shell root, Shield resources, and an explicit server entry.

Create a page

Resources return page results. The view is a Shell component and Shield serializes the view name plus props.

ts
return page({  view: Home,  props: {    title: 'Hello'  },  head: {    title: 'Hello'  }})

Wake the root

The client entry only imports CSS and wakes the stable root. The target and props are managed by Shield.

ts
import './style.css'import { wakeRoot } from '@schildw3rk/shield/client'import App from './App.shell'wakeRoot(App)