搜索文档
reactlynx-testing-library / renderHook
function renderHook<Result, Props>(render: (initialProps: Props) => Result, options?: RenderHookOptions<Props>): RenderHookResult<Result, Props>
Allows you to render a hook within a test React component without having to create that component yourself.
Result
Props