Persist redux store:
- Manually
- Lib
Redux Thunk:
- What is this?
- How to use
Bài tập tuần này:
- Detail: nested routing
- Cart: giỏ hàng, show list: increase/decrease
LocalStorage
- Persist even closing browser
SessionStorage
- Dispose after closing browser
Bài tập:
-
Detail:
- nested routing
- bind html code to UI
- sanitize html before rendering (XSS attack)
-
Cart:
- convert logic from component state to redux
- add cart page: similar to Tiki 🤣
Git convention
- Get latest code of working branch:
develop
,feature/abc
- Coding here .....
- Stage changes:
git add .
- Add changes to stash:
git stash
- Get latest code:
git pull
- Create & switch to a new branch:
git checkout -b feature/s9-add-lesson-code
- Get back changes from stash:
git stash pop
- Stage changes:
git add .
- Commit code: apply to local git
- Push code: sync local git to remote git (Github, Gitlab, Bitbucket)
- Review code and create PR
- Waiting for review
- Merge PR or Fix feedbacks