rsnext/packages/next-codemod/transforms
Tim Neutkens c5b5c43e3d
Add codemod for files that do not support the new React JSX transform (#21281)
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'`
2021-01-18 15:17:10 +00:00
..
__testfixtures__ Add codemod for files that do not support the new React JSX transform (#21281) 2021-01-18 15:17:10 +00:00
__tests__ Add codemod for files that do not support the new React JSX transform (#21281) 2021-01-18 15:17:10 +00:00
add-missing-react-import.ts Add codemod for files that do not support the new React JSX transform (#21281) 2021-01-18 15:17:10 +00:00
name-default-component.ts Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00
url-to-withrouter.ts Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00
withamp-to-config.ts Move next-codemod to Next.js monorepo (#15536) 2020-08-10 11:14:53 +02:00