T

ReactPatcher

The patcher.react namespace: before, instead and after for React components.

type ReactPatcher = { … }

Members

afterReactPatch<PatchType.After>

Runs a callback after a component renders; its return value replaces the tree unless it is undefined.

beforeReactPatch<PatchType.Before>

Runs a callback before a component renders; it can return new props for a function component.

insteadReactPatch<PatchType.Instead>

Renders a callback's return value in place of a component; ctx.original() renders the component.