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 {
149
149
150
150
In order to be able to use our styles, we must import them into our project:
151
151
152
- _ . /index.tsx_
152
+ \_ _ ./src /index.tsx_
153
153
154
154
``` diff
155
155
import React from "react";
156
156
import { createRoot } from "react-dom/client";
157
157
import { App } from "./app";
158
158
+ import "./styles.css";
159
-
160
- const container = document.getElementById("root");
161
- const root = createRoot(container);
162
-
163
- root.render(<App />);
164
159
```
165
160
166
161
- And let's integrate it in our app component:
Original file line number Diff line number Diff line change @@ -157,18 +157,13 @@ body {
157
157
158
158
Para poder usar los estilos tenemos que importarlos dentro de nuestro proyecto:
159
159
160
- _ . /index.tsx_
160
+ \_ _ ./src /index.tsx_
161
161
162
162
``` diff
163
163
import React from "react";
164
164
import { createRoot } from "react-dom/client";
165
165
import { App } from "./app";
166
166
+ import "./styles.css";
167
-
168
- const container = document.getElementById("root");
169
- const root = createRoot(container);
170
-
171
- root.render(<App />);
172
167
```
173
168
174
169
- Y vamos a integrarlo en el componente de nuestra aplicación:
You can’t perform that action at this time.
0 commit comments