Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.04 KB

s9-hooks.md

File metadata and controls

56 lines (36 loc) · 1.04 KB

S9 - Hooks

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

  1. Get latest code of working branch: develop, feature/abc
  2. Coding here .....
  3. Stage changes: git add .
  4. Add changes to stash: git stash
  5. Get latest code: git pull
  6. Create & switch to a new branch: git checkout -b feature/s9-add-lesson-code
  7. Get back changes from stash: git stash pop
  8. Stage changes: git add .
  9. Commit code: apply to local git
  10. Push code: sync local git to remote git (Github, Gitlab, Bitbucket)
  11. Review code and create PR
  12. Waiting for review
  13. Merge PR or Fix feedbacks