Vite supports JSX out of the box, so there are no additional steps to get started with React. However, you’ll probably want to enable React Refresh for a better development experience.
For example, if you’re working on modal that appears after clicking a button, you’d need to reopen that modal every time the page refreshes. With React Refresh, the modal will stay open after the code reloaded, because it’s able to remember the previous state. To enable React Refresh, install the @vitejs/plugin-react-refresh package.