This project was used to tell my colleagues about five frontend questions:
- Semantic HTML / 1-semantic-html
Told why semantic tags matter and spoke about some popular semantic tags and common mistakes. Also, told why we still need<div />
. - CSS units / 2-units
I spoke about the most popular units:px
,rem
,em
,vh
,vw
,%
. Told why we needrem
and pointed out the nuances of using percentages. - SCSS code style, important rules and selectors / 3-styles
Told about how to write better SCSS code. Spoke aboutposition: sticky
,display: grid
, and> :not(:last-child)
. - CSS in JS / 4-css-in-js
Told about the pros and cons of using CSS in JS approach and about thestyled-components
library. - Bonus theme: memoization in React / 5-bonus
Told about two cases when we need to useuseCallback
and about the common mistake of devs who use it (usinguseCallback
withoutmemo
func).
- Run
yarn
- Run
yarn dev
oryarn vite