T
ReactPatcher
The patcher.react namespace: before, instead and after for React components.
type ReactPatcher = { … }Members
after
ReactPatch<PatchType.After>Runs a callback after a component renders; its return value replaces the tree unless it is undefined.
before
ReactPatch<PatchType.Before>Runs a callback before a component renders; it can return new props for a function component.
instead
ReactPatch<PatchType.Instead>Renders a callback's return value in place of a component; ctx.original() renders the component.