c5b5c43e3d
Previously our automatic React injection approach injected `import React from 'react'` automatically whenever JSX was detected. The new official JSX transform solves this by enforcing importing `React` when it is used. This codemod automatically converted files that are using a "global React variable" to use `import React from 'react'` |
||
---|---|---|
.. | ||
__testfixtures__ | ||
__tests__ | ||
add-missing-react-import.ts | ||
name-default-component.ts | ||
url-to-withrouter.ts | ||
withamp-to-config.ts |