From 615de10b0b056461d7c39d78f2abeba0cfe1d461 Mon Sep 17 00:00:00 2001 From: fzaninotto Date: Fri, 28 Oct 2022 19:01:36 +0200 Subject: [PATCH] [Doc] Fix Vite tutorial default style Closes #8326 --- docs/Vite.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/Vite.md b/docs/Vite.md index c636ea9b3a2..f283cc1415f 100644 --- a/docs/Vite.md +++ b/docs/Vite.md @@ -61,6 +61,21 @@ const App = () => ; export default App; ``` +Finally, remove the `index.css` from the `main.tsx` folder: + +```diff +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import App from './App'; +-import './index.css'; + +ReactDOM.createRoot(document.getElementById('root')).render( + + + +); +``` + Now, start the server with `yarn dev`, browse to `http://localhost:5173/`, and you should see the working admin: ![Working Page](./img/nextjs-react-admin.webp)