What are the 4 approaches to combine CSS and React?
Inline Styling;
CSS-in-JS Libs;
CSS StyleSheets;
CSS modules;
What are the 7 common problems of styling with vanilla CSS?
1 - Global namespace; 2 - dependencies; 3 - dead code elimination; 4- minification; 5 - sharing constants; 6 - non-deterministic resolution; 7 - isolation
How can themes be broadcasted to components?
Via contexts. e.g:
const ThemeContext = React.CreateContext({ theme: {} })What are the “magic bits” of webpack? how many of them are necessary?
the loaders. each file type is likely to have one or more loaders.
What happens when a specific file type needs more than one loader?what is the precedence?
loaders from right to left will be used.
What are the alternatives for webpack?
Rollup and Parcel
When Parcel is recommended? Why?
For very simple projects. Because it allows quick setups.