Something went wrong on our end. Please try again.
Created by: gitstart-sourcegraph
Upgrade to the latest version of the JSX transform in all packages with following steps:
babel.config.js
to use new @babel/preset-react
runtimetsconfig.json
to use "jsx": "react-jsx"
npx react-codemod update-react-imports ./client --parser=tsx
Note: React codemod adds import * as React from 'react'
in files which are using React APIs via React.*
form, it requires some extra works to convert React.react_api
to import { react_api } from 'react'
(already did that for client/branded
package). it would be great if we have our own codemod to do that transform
Make sure all checks are passed in CI
Check out the client app preview documentation to learn more.