codemod-replace-react-fc-typescript
codemod-replace-react-fc-typescript copied to clipboard
Add option to add children to props
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