Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/routes/concepts/components/class-style.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ This is because they are not reusable, and they can be difficult to maintain ove
The `class` attribute allows you to style one or more elements through CSS rules.
This provides a more structured approach to styling, as it allows you to reuse styles across multiple elements.

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

```jsx
import "./Card.css";
Expand Down