-
Function component
- props
- Hello world component
- Hooks
- useState
- Toggle text
- useEffect
- self destruct component
- EX: https://www.youtube.com/watch?v=8vgzC3CI510
- server: https://nztodo.herokuapp.com/api/task/?format=json
-
Forms
- controlled
- uncontrolled
- ref
- Function component
- hooks
- useState
- useEffect
- https://www.youtube.com/watch?v=8BtdI3-ateM&list=PLnHa2cF4cNDtfkYKO6v069GUPYrJtijwc&index=7
- login api -> send post request to: https://academeez-login-ex.herokuapp.com/api/users/login
- the login request is with {email: '...', password: '...'}
- register api -> send post request to: https://academeez-login-ex.herokuapp.com/api/users/register
- the register request is with {email: '...', password: '...', firstName: '...', lastName: '...'}
- the todo api -> send get request to: https://academeez-login-ex.herokuapp.com/api/tasks