I have already created a video about this on the Cules Coding youtube channel.
And your whole layout breaks.
By the way, this blog is originally published on cules coding website.
I would be glad if you give it a visit.
The solution is
Scoping CSS. Instead of writing css globally 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
the library will do is, it will generate a unique class name for 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 components will have a 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 provide us. Like theming,
props adaption, extending style, and so on.
functionalities and features. So, don't let yourself restrict within the library
To learn more watch the video.
I have made a video about how to build a carousel postcard with React, Material-UI, and Swiper.js.
If you are interested you can check the video.
You can also demo the application form here
Please like and subscribe to Cules Coding. It motivates me to create more content like this.
If you have any questions, please comment down below.
You can reach out to me on social media as @thatanjan .
Stay safe. Goodbye.
The Internet has revolutionized our life. I want to make the internet more beautiful and useful.
I ended up being a full-stack software engineer.
I can develop complex full-stack web applications like social media applications or e-commerce sites.
I have developed a social media application called Confession. The goal of this application is to help people overcome their imposter syndrome by sharing our failure stories.
I also love to share my knowledge. So, I run a youtube channel called Cules Coding where I teach people full-stack web development, data structure algorithms, and many more. So, Subscribe to Cules Coding so that you don't miss the cool stuff.
I am looking for a team where I can show my ambition and passion and produce great value for them.
Contact me through my email or any social media as @thatanjan . I would be happy to have a touch with you.
- Email: firstname.lastname@example.org
- linkedin: @thatanjan
- portfolio: anjan
- Github: @thatanjan
- Instagram (personal): @thatanjan
- Instagram (youtube channel): @thatanjan
- Twitter: @thatanjan
- Facebook: @thatanjan
Blogs you might want to read:
- Eslint, prettier setup with TypeScript and react
- What is Client-Side Rendering?
- What is Server Side Rendering?
- Everything you need to know about tree data structure
- 13 reasons why you should use Nextjs
Videos might you might want to watch: