babel-plugin-typescript-to-proptypes icon indicating copy to clipboard operation
babel-plugin-typescript-to-proptypes copied to clipboard

Does not generate propTypes for forwardRef.

Open mercurial20 opened this issue 4 years ago • 0 comments

I react component library with configuration: storybook, rollup, typescript, react. components use React.forwardRef I tried to generate propTypes for components but it did nothing. It builded without error, but component.propTypes is not generated. I tried with React.FC instead of React.forwardRef and it works normally.

mercurial20 avatar Jan 28 '21 11:01 mercurial20