September 2024
Intermediate to advanced
743 pages
27h 48m
English
Admittedly, the contact list does not look particularly breathtaking at the moment. However, so far, we have only dealt with structure (i.e., HTML) and dynamics (i.e., JavaScript) and React itself. We’ve completely ignored the topic of styling. At this point, React provides some options for styling components using CSS. Basically, you can draw on the entire repertoire of CSS features.
The easiest way to style your application is to use inline styles. Like in regular HTML, you can use the style attribute of elements to apply certain CSS declarations, as discussed in Chapter 3. The difference with HTML, however, is that in React you use a JavaScript object instead of normal strings. As a result, ...
Read now
Unlock full access