react-ui89
Version:
A collection of React components that mimic a common style of user interfaces from the late 80s and early 90s.
14 lines (13 loc) • 394 B
TypeScript
import React from "react";
/**
* Calls a callback when the component has rendered for the first time.
*
* This is useful for tests that need to wait for a component to render
* before performing assertions.
*/
export default function RenderCallback(props: {
/**
* Called when the component has rendered for the first time.
*/
onRender: () => void;
}): React.JSX.Element;