Skip to content

Commit

Permalink
Merge pull request #35 from rix1/patch-1
Browse files Browse the repository at this point in the history
Update css_and_js.mdx
  • Loading branch information
jpsca authored Jan 25, 2024
2 parents 68620ce + 60e42a7 commit d807378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/guide/css_and_js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Your components might need custom styles or custom JavaScript for many reasons. Instead of using global stylesheet or scripts files, writing assets per individual component has several advantages:

- **Portability**: You can copy a component from one project to another kmowing it will keep working as expected.
- **Portability**: You can copy a component from one project to another knowing it will keep working as expected.
- **Performance**: On each page, only load the css and js that you need. Also, the browser will already have cached the assets of the components for other pages that use them.
- **Simple testing**: You can test the JS of a component indepently from others.

Expand Down

0 comments on commit d807378

Please sign in to comment.