Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh_testing_library/components.ts>renderHook

Utilities for testing fresh apps
Latest
function renderHook
import { renderHook } from "https://deno.land/x/fresh_testing_library@0.13.0/components.ts";

Allows you to render a hook within a test React component without having to create that component yourself.

Type Parameters

Result
Props

Parameters

render: (initialProps: Props) => Result
optional
options: RenderHookOptions<Props>