Skip to content

Commit a8c23e2

Browse files
Merge branch 'main' into dependabot/npm_and_yarn/tailwindcss-3.4.18
2 parents 026b240 + 2997ee3 commit a8c23e2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/routes/concepts/components/class-style.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ This is because they are not reusable, and they can be difficult to maintain ove
3737
The `class` attribute allows you to style one or more elements through CSS rules.
3838
This provides a more structured approach to styling, as it allows you to reuse styles across multiple elements.
3939

40-
Classes are defined in CSS files, which are then imported into the component files that use them.
41-
You can import these files using the `import` statement at the top of your component file.
42-
Once imported into a component, the classes are scoped to that component and any of its children.
40+
Classes are defined in CSS files. You can import these files using the `import` statement at the top of your component file.
41+
The CSS file's contents will be inserted into a style tag in the document head.
4342

4443
```jsx
4544
import "./Card.css";

0 commit comments

Comments
 (0)