React styled components / styled components [V5 EDITION]
Ditch CSS stylesheets! Learn CSS in JS to quickly and cleanly style React components with the styled components library!
**Updated course to version 5 of styled components. **
This course is the next step for React developers who want to increase their value as a front-end developer by ditching flaky CSS class names and structures, messy CSS imports and CSS class naming conflicts with their React apps and instead want to embrace the best way of styling React apps, with the CSS-in-JS Styled Components library!
The styled-components framework lets you write actual CSS in your JavaScript. This means you can use all the features of CSS you use and love, including (but by far not limited to) media queries, all pseudo-selectors, nesting, etc.
React took the traditional view / view model approach to web development and combined them both into one, while still keeping code modular and single responsibility. Styled Components can be seen as an extension of that, bringing the styling into the JS file as well. They all have one to one relationship, so it makes sense to combine them as long as they’re kept modular. This course will help you understand the power of this approach and show you how to build such components.
What you’ll learn
- Increase your value as a React developer.
- Convert or create new React apps using the CSS-in-JS styled-components library.
- Style React apps using a newer, cleaner, and more efficient method with Styled Components.
- Use Animations with styled components.
- Create component variations using props (e.g., large / small / primary / secondary Button)
- Create different themes with a theme toggle component to apply a light & dark theme.
- Implement third party fonts using Google fonts.
- Learn how styled components can interact with ordinary React components & React hooks.
- Create a mobile-first responsive layout.
Recommended Course
Microfrontends with React: A Complete Developer’s Guide
React – The Complete Guide 2023 (incl. React Router & Redux)