04 React IV
Topics covered in this week are:
- CSS 101 - Flexbox, Grid, and CSS Variables
- CSS Modules
- Light and dark theming with CSS Modules
- The UseContext hook
- Architecture of a full stack application
- Deployment with Github Actions and Caddy
Reviews in groups
We will review the code from the previous week. In particular the Friday Exercise. Make sure you have your code ready for review.
Exam questions that could be relevant for the review:
- Show and explain the concept of promises in JavaScript (think of the fetch API)
- Provide examples for different ways of doing conditional rendering.
- Show and explain of what a JWT token is composed
- Describe and show the process og login using JWT. What problem does it solve?
- Show and explain an example of sub-routing.
- Describe conceptually what Same Origin Policy (SOP) and Cross Origin Ressource Sharing (CORS) are, and how we avoid getting CORS errors when fetching data from your API.
Styling in React with CSS Modules.
- General intro to applying CSS with React (6:22)
- The Best Way To Style Components In React (4:34)
- An Interactive Guide to CSS Grid
Deployment with Github Actions and Caddy
Read through the exercise for the day - but wait with the implementation until the class. Get an overall understanding of the steps involved.
See this video about the linux command rsync
: