Lightlines
By patternsdev

hooks-pattern

patternsdev1.1k installs

Your React components, with reusable state logic.

What it does

Guides the agent in sharing stateful logic across React components through custom hooks.

When to use it

Use when adding state or lifecycle behavior to functional components or sharing stateful logic across components.

How to use it

It changes how the agent implements state, side effects, and reusable logic in React functional components.

What you provide

  • An existing project

Latest review

What you need · 1

The guidance uses React's built-in hooks to implement component state and side effects.


Access · 0

No additional actions listed.