Styling Components with CSS
Learn to style the components of the Q&A app with CSS.
In this section, we’re going to style the body, app container, and header container with regular CSS and understand the drawbacks of this approach.
Styling the document body
We are going to use the traditional approach to style the document’s body. Follow these steps to do so:
Open
index.tsx
. Remember thatindex.tsx
is the root of the React component tree. Notice how the CSS file is referenced:
Get hands-on with 1400+ tech skills courses.