Комментарии:
tq
ОтветитьThanks alot
ОтветитьThanks dude:)
Ответитьthank u sr, this tutorial was very usefull for me , and im glad, the way u used to explain , gave me some Brainstorming thanks guy.
Ответитьthis goes against the whole idea behind css and design consistency but hey.. good to know :)
ОтветитьWhat a fantastic explanation, thank you so much
ОтветитьShould we do it for every single class?
ОтветитьBefore watching this tutorial, I used to find css modules and its import and reference styles using JavaScript syntax quite complex for its benefits. That's why I avoided modules like the plague. Thank you Telmo, this was very helpful!
ОтветитьIt's cool when there is like 2 styles to scope but when you want it scoped for each components just switch to vuejs
Ответить*tip hat
Ответитьeh... use more semantic class names maybe? there you have BEM. Why use a technology for solving a problem that could be solved by a better naming strategy?
ОтветитьGREAT
ОтветитьTnx
Ответитьyou did not include on your tutorial that we need to do this , module.exports = {
module: {
rules: [
{
test: /\.css$/,
use: [
'style-loader',
{
loader: 'css-loader',
options: {
modules: true
}
}
]
}
]
}
};
So simple and straight forward....I love it. Thank you
Ответитьthank you
Ответитьi subscribed
ОтветитьThank you so much🤝
ОтветитьI had one question. let's say there are two components, A and B
and two CSS files A.css and B.css, and compo A and B have several <button> in them now
let's say I want to color all buttons in A red and all buttons in B blue.
can I solve this problem without giving the class name to <button> ?
Tooo much work for scoping CSS. Try Angular you will not have this problem.
Ответитьreally really helpful, thank you very much !
ОтветитьThank you, man. It really helps me a lot.
ОтветитьThank you for simple explantion TELMO✌✌✌✌we are looking forward to the others videos😊😊😊
Ответитьman you are a god of teaching for sure
ОтветитьVery useful! Thanks for sharing!
ОтветитьGreat video helped me understand css modules
ОтветитьThanks alot
ОтветитьL
ОтветитьI get the problem it solves, just not why the problem is there in the first place.
Like, we have a component called Example.js
In that, we import example.css
So since this is the only place that this CSS is imported and therefore used, why can it conflict with other components? They havent linked/imported the stylesheet?
I understand why use css module now thank😆
ОтветитьHow do you do conditional classes with this technique?
ОтветитьThanks for your video. I fastly reminded how to connect css (scss) modules.
ОтветитьHelpful thanks
Ответитьtnx
Ответитьexcellent explanation. shukran
ОтветитьThank you for explaining the importance of React css module
ОтветитьThanks buddy!! Jazakallah
ОтветитьGreat video. I didnt even have to see your name, I knew by your accent you were Portuguese lol. Obrigado pelo video
Ответитьdose it work with sass ?
ОтветитьTnq sm
ОтветитьGreetings! How could i make my components responsive if i use css modules?
ОтветитьCan i use bootstrap classes in it ?
ОтветитьclassName takes in a string but you're passing in a class, how is that possible. sorry if I missed the answer to this
ОтветитьLots of thanks for such a wonderful video on css modules
Ответитьthis is not working for me, the style is still applied globally
Ответитьthat wasup thanks man
really helped
Thank you this tutorial is crystal clear , perfect.
Ответить