Skip to main content

KeyworkApp

Overview

A class representing a Keywork App's lifecycle.

Usage

import { KeyworkApp } from '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

NameType
StaticPropsextends null

Parameters

NameTypeDescription
initialChildrenHydrationCallback<StaticProps>
options?HydrateKeyworkAppOptions-

Returns

void

Defined in

react/browser/classes/KeyworkApp.tsx:56