tinky / Instance
Interface for the Tinky instance returned by render.
cleanup: () =>
void
Cleanup the instance from the instances map.
void
clear: () =>
void
Clear output.
void
rerender: (
node) =>void
Replace the previous root node with a new one or update props of current root.
Renders the given React node.
ReactNode
The React node to render.
void
The new React node to render.
unmount: (
error?) =>void
Manually unmount the whole Tinky app.
Unmounts the Tinky app.
number | Error | null
Optional error object or exit code.
void
Optional error or exit code.
waitUntilExit: () =>
Promise<void>
Returns a promise that resolves when the app is unmounted.
Waits until the app exits.
Promise<void>
A promise that resolves when the app exits.
A promise that resolves when the app is unmounted.