I have already created a video about on Cules Coding youtube channel.
And your whole layout breaks.
The solution is
Scoping CSS. Instead of writing css globaly in css styles, what if we can write them inside
the component. Then the css styles won't affect other components.
This is where css-in-js comes into play. Css in js is writing css inside
libary will do is, it will generate a unique class name to the component. And
that class will have all the styles.
It will add a unique hash to the class name. Just because the hash will be
unique, that's why all the component will have different style. Now we have
There are bunch of libraries out there. Popular ones are:
I like the Styled Component most. You can use whatever you want.
There are a lot of features that those libraries provides us. Like theming,
props adaption, extending style and so on.
functionalities and features. So, don't let yourself restrict witin libary
To learn more watch the Video.
That's it for today. If you have any question, please put them on the comment box. I would love to hear from you. Also if you like this blog then give it a 💖 reaction. You can connect to me on any social media as @thatanjan
. I daily post content there.
So stay safe and good bye.
My name is Anjan. I am a full stack web developer from Dhaka, Bangladesh.
I can create complex full stack web applications like social media application, blogging, e-commerce website and many more.
I love to solve problems and develop new ideas. I also enjoy sharing my knowledge to other people who are wiling to learn. That's why I write blog posts and run a youtube channel called Cules Coding
Instagram (personal): @thatanjan
Instagram (youtube channel): @thatanjan
Why would you subscribe to Cules Coding?
Cules Coding will teach you full stack development. I will teach you not only the basic concepts but also the advanced concepts that other youtube channels don't cover. I will also teach you Data Structures and Algorithms with abstraction and without Math. You will also find many tutorials about developer tools and technologies. I also explain advanced concepts and technologies with simplicity.
Subscribe to Cules Coding
so that my friend you don't miss any of these cool stuffs.