03 React III
Topics covered in this week are:
- Routing
- Security
- Deployment
Online reviews in groups
De næste mandage kan I skiftes til at vise noget frem. Vi regner bestemt ikke med at alle kan nå at vise noget frem på den halve time vi har, men så kan vi rotere næste gang. Det er jo også en slags træning til den eksamensform vi har i Front-end.
Find nogle gode eksempler frem (du selv har lavet), hvor du kan fortælle lidt om:
- Hvad er en React Component?
- Fortælt hvad fordelene er ved React i stedet for vanilla Javascript og DOM programmering
- Forklar hvad useState – og hvad det bruges til i React
- Forklar hvad useEffect er – og hvad det bruges til i React
- Hvad er props?
- Forklar hvordan CRUD fungerer i Javascript og React
- Forklar forskellen på controlled og un-controlled components i React. Fordele og ulemper ved hver af dem.
- Orient yourself in this documentation:
- Go through the examples corresponding to the documentation above together in class.
- Look at the JSON-Server that we will use in the codelab on Wednesday: JsonServer
- Clone the project and implement todos
- React Router book exercise
- Create a new database: securitydemo
- Change credentials in HibernateConfig from dev:ax2 to postgres:postgres
- Add routing to your portfolio project. You can use the React Router documentation and examples to help you with this. You can also look at the code exercises we have done during the week for inspiration on how to implement routing in your project.
- Try to implement some or many of the features we have covered on routing in a single page application.
- Add security features to your project, with login and JWT tokens, protected routes, and role based endpoints.