Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServerOnly ¶
ServerOnly renders its server implementation on non-wasm targets.
Types ¶
type ClientReference ¶
type ClientReference struct {
ID string `json:"id"`
Name string `json:"name"`
Props map[string]string `json:"props,omitempty"`
Export string `json:"export,omitempty"`
}
ClientReference identifies a client-side island passed through a server-only tree.
type Descriptor ¶
type Descriptor struct {
ID string `json:"id"`
Name string `json:"name"`
Props map[string]string `json:"props,omitempty"`
ClientSlots []ClientReference `json:"clientSlots,omitempty"`
}
Descriptor is the serializable server-component model shared with build tools.
type Manifest ¶
type Manifest struct {
Components []Descriptor `json:"components"`
}
Manifest is emitted by server rendering so bundlers can omit server-only code from the wasm entry.
Click to show internal directories.
Click to hide internal directories.