Skip to main content

Template for Hook document

useHook - description for your custom hook.

Usage

Example usage of the custom hook

function ExampleComponent(props: any) {
// Your code that implement custom hook

return <div>Your component</div>
}

API

useHook(param1, param2): return type

Parameters

NameTypeDescription
param1typeof param1Description of param1.
param2typeof param2Description of param2.

Returns

return type

Hook

// Code of custom hook