Skip to content

cut0/react-migration-insert-children

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Migration Insert Children

After React18, children: React.Node was removed from React.FC.

This tool is a migration tool that inserts the required children when transitioning from versions earlier than React18 to React18.

export const Component: React.FC <{
  hoge:string
+ children?: React.ReactNode
}> = ({ children }) => <div/>

It offers an "Instant Mode" for simple migration and an "Advanced Mode" to achieve more sophisticated migration.

How To Use

Comming Soon.

It can be executed via commands from the shell.

Keywords

  • React
  • React18
  • React.FC
  • Insert Children
  • Codemod
  • Migration
  • ts-morph
  • Deno

About

React18 migration tool for React.FC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published