Lightlines
By patternsdev

render-props-pattern

patternsdev967 installs

Reusable React components with explicit data flow.

What it does

Guides the agent in sharing stateful logic across React components while keeping their rendering separate.

When to use it

Use when components need to share stateful logic but render differently, or when higher-order components cause naming collisions or excessive nesting.

How to use it

It changes how the agent shares component logic by using functions passed as props, while preferring Hooks when appropriate.

What you provide

  • An existing project

Latest review

What you need · 1

Applies to React components, using a function-valued render or children prop.


Access · 0

No additional actions listed.