This session is about understanding and utilizing Hooks in React components, especially useEffect.
- Preparation
- Session Plan (for mentors)
- Assignment
By the end of this session, you will:
- Know how to build interactive forms as React components
- Be familiar with React's way to attach (DOM) events to elements
- Be able to submit a form and process the form data in JavaScript
- Understand how and why React uses Hooks
- Have tried the
useEffecthook in different contexts - Know how to use
useEffectto synchronize with other systems (like the DOM or browser window)
- Be able to load data from an API utilizing
fetch, and theuseEffectanduseStatehooks - Understand at what time(s) your data will be loaded from the API