Easily Integrate SCSS and Flexbox into your React App
summary
Demo converts a Create React App by installing npm install node-sass, renaming .css to .scss and updating imports so Webpack/Babel compiles SCSS. Shows concrete patterns: global SCSS variables and mixins (reset-list, parameterized display mixin) and how to import index.scss into component styles. Lays out a gallery and form by wrapping them in a submain div and applying display: flex plus align-items:flex-start; the result is responsive and works in the live app.
AI-written summary · about
chapters (8)
- 0:00Introduction and setup
- 3:54Installing SCSS in React
- 7:49Using SCSS variables
- 11:29SCSS mixins explained
- 16:05Flexbox basics and setup
- 19:03Aligning elements with flexbox
- 22:42SCSS nesting for cleaner code
- 24:29Resources and summary
related talks
29mThe Lonely and Dark Road to Styling in React
28mHow to create a personal website with React + Scss + Bem: The basis
22mSay Hello to Box, Flex and Stack: Layouts in the Component Era
32mNavigating the React Solar System
53mBuilding Web Apps with React.js
49mNavigating the React Solar System
34mState of the React Ecosystem
15mReact Best Practices in 15 Slides
