File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
04-frameworks/01-react/02-base/03-list-users Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -149,18 +149,13 @@ body {
149149
150150In order to be able to use our styles, we must import them into our project:
151151
152- _ . /index.tsx_
152+ \_ _ ./src /index.tsx_
153153
154154``` diff
155155import React from "react";
156156import { createRoot } from "react-dom/client";
157157import { App } from "./app";
158158+ import "./styles.css";
159-
160- const container = document.getElementById("root");
161- const root = createRoot(container);
162-
163- root.render(<App />);
164159```
165160
166161- And let's integrate it in our app component:
Original file line number Diff line number Diff line change @@ -157,18 +157,13 @@ body {
157157
158158Para poder usar los estilos tenemos que importarlos dentro de nuestro proyecto:
159159
160- _ . /index.tsx_
160+ \_ _ ./src /index.tsx_
161161
162162``` diff
163163import React from "react";
164164import { createRoot } from "react-dom/client";
165165import { App } from "./app";
166166+ import "./styles.css";
167-
168- const container = document.getElementById("root");
169- const root = createRoot(container);
170-
171- root.render(<App />);
172167```
173168
174169- Y vamos a integrarlo en el componente de nuestra aplicación:
You can’t perform that action at this time.
0 commit comments