From cd82f2543857915be88bd54779d586e279914f55 Mon Sep 17 00:00:00 2001 From: asvarcas <asvarcas@etriek.com.uy> Date: Mon, 21 Nov 2022 14:14:03 -0300 Subject: [PATCH] Fix react-admin's vite tutorial css setup --- docs/Tutorial.md | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/docs/Tutorial.md b/docs/Tutorial.md index 15828bb046b..54b08b4cf6c 100644 --- a/docs/Tutorial.md +++ b/docs/Tutorial.md @@ -80,20 +80,13 @@ const App = () => <Admin dataProvider={dataProvider} />; export default App; ``` -Also, remove the default Vite CSS fom the `main.tsx` file: +Also, change the default Vite CSS file to look like this: ```diff -// in src/main.tsx -import React from 'react' -import ReactDOM from 'react-dom/client' -import App from './App' --import './index.css' - -ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( - <React.StrictMode> - <App /> - </React.StrictMode> -) +// in src/index.css +body { + margin: 0; +} ``` That's enough for react-admin to render an empty app and confirm that the setup is done: