Standard Call Pattern
Not Wrapped (Direct Hook)
Invoke hooks directly at the root of your component. Easy to write and straightforward for simple components, but ties the entire component's lifecycle to the hook's state transitions.
Code Snippet
function MyComponent() {
// Triggers full re-render on state change
const { count, inc } = useCounter({ step: 1 });
return (
<div>
<button onClick={inc}>Add {count}</button>
<HeavyComponent />
</div>
);
}