Lightlines
By humanlayer

narrow-react-prop-types

humanlayer1.1k installs

React props that match your app, not your mocks.

What it does

Tightens React component prop types to match live application usage, making stories, tests, and mocks conform to that contract.

When to use it

Use when stories, mocks, tests, or demos have widened React props to permit states the live application never enters.

How to use it

Give it a React project; it narrows component prop types using live call sites and updates affected support code.

What you provide

  • An existing project

Latest review

What you need · 1

Works on components in an existing React application.


Access · 0

No additional actions listed.