---
title: "Discussion on \"Why do we use  .module.css\" | Hashnode"
description: "Discussion on \"Why do we use  .module.css\". If you ever worked with React, you might have noticed the use of Component.module.css for styling the Component.jsx instead of regular Component.css . We'll discuss why.\nIf regular css files are used, the styles will apply to a global scope. Globally..."
url: "https://hashnode.com/posts/module-css/6578a035b137a68a84daf0bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why do we use .module.css](https://jathu.hashnode.dev/module-css?utm_source=hashnode&utm_medium=feed)

If you ever worked with React, you might have noticed the use of Component.module.css for styling the Component.jsx instead of regular Component.css . We'll discuss why. If regular css files are used, the styles will apply to a global scope. Globally...

Dec 12, 2023 · 2 min read · jathu.hashnode.dev  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#modules](https://hashnode.com/tag/modules)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Jathavan Mahendrarajah](https://hashnode.com/@kakashi05)

@kakashi05 · Moratuwa, Colombo

  
[View profile](https://hashnode.com/@kakashi05)

undergrad. CSE, UoM

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
