Skip to main content

Generated props

React Preview isn't just a basic preview tool. In order to save you as much time as possible, it can detect component prop types and automatically generate valid props.

It all happens in one click, as long as you use either TypeScript or PropTypes.

How does it work?

React Preview uses the TypeScript resolver under the hood, which enables it to generate arbitrarily complex props. Yes, even if you use generics!