codemod-replace-react-fc-typescript
codemod-replace-react-fc-typescript copied to clipboard
jscodeshift's codemod to replace React.FC when using React with Typescript
Results
3
codemod-replace-react-fc-typescript issues
Sort by
recently updated
recently updated
newest added
Interestingly, now that React 18 types have removed the implicit children problem, I want to go the other way, from a function with props typed as an object to React.FunctionalComponent.....
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...
enhancement
good first issue
The current run command seems to be excessive in complexity. There just should be really one step, something along the lines of ```sh npx codemod-command ``` Do some research on...
question