codemod-replace-react-fc-typescript icon indicating copy to clipboard operation
codemod-replace-react-fc-typescript copied to clipboard

Add option to add children to props

Open gndelia opened this issue 3 years ago • 0 comments

The current behaviour removes React.FC from the component declaration, which has an implicit definition of children, leaving its definition to be set manually in each case. An option could be set to forcefully add { children?: React.ReactNode } as props, which are the value that React.FC offers. It should be an opt-in option

gndelia avatar Nov 14 '20 03:11 gndelia