---
title: "Comment by Tayo Ishola on \"Migrating from Create React App (CRA) to Vite\" | Hashnode"
description: "Great article I think you should update jsx key of tsconfig.json to &quot;jsx&quot; : &quot;react-jsx&quot; to prevent typescript errors like &#39;React&#39; re"
url: "https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/632e9cf93ac18d0d78a01439"
---

[Discussion](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a)

Comment [Migrating from Create React App (CRA) to Vite](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a)

[Tayo Ishola](https://hashnode.com/@neocoder)

[Sep 24, 2022](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/632e9cf93ac18d0d78a01439)

Great article

I think you should update `jsx` key of tsconfig.json to

```
"jsx": "react-jsx"
```

to prevent typescript errors like

`'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.`

[Cathal Mac Donnacha](https://hashnode.com/@cathalmacdonnacha)

[Sep 27, 2022](https://hashnode.com/posts/migrating-from-create-react-app-cra-to-vite/630351878cb53b2c16267c8a/comment/632e9cf93ac18d0d78a01439#reply-6332bf5cc732084860086201)

Updated, thank you for that. 🙏
