KeyworkApp
Overview
Usage
- Node
- Deno
- Browser/ESM
import { KeyworkApp } from 'keywork/react/browser/classes'
import { KeyworkApp } from 'https://deno.land/x/keywork/react/browser/classes'
let { KeyworkApp } = await import('https://esm.sh/keywork/react/browser/classes')
Implements
Disposable
Constructors
constructor
new KeyworkApp
()
Methods
dispose
dispose
(): `void`
Returns
void
Implementation of
Disposable.dispose
Defined in
react/browser/classes/KeyworkApp.tsx:88
hydrate
hydrate
hydrate<StaticProps>(initialChildren, options?): `void`
Hydrates a server-side rendered React component.
This should only run in the browser.
Type parameters
Name | Type |
---|---|
StaticProps | extends null |
Parameters
Name | Type | Description |
---|---|---|
initialChildren | HydrationCallback< StaticProps> | |
options? | HydrateKeyworkAppOptions | - |
Returns
void
Defined in
react/browser/classes/KeyworkApp.tsx:56
A class representing a Keywork App's lifecycle.