CurriculumExpansion icon indicating copy to clipboard operation
CurriculumExpansion copied to clipboard

chore: add workshop for teaching useEffect hook in frontend cert

Open jdwilkin4 opened this issue 5 months ago • 1 comments

We need a workshop to teach working with the useEffect hook. This should be a short workshop.

You can see the lecture videos on the sheet to get a sense of what was taught immediately before this.

Here are some suggested project ideas from ChatGPT:

Live Search Feature

Objective: Implement a live search feature where search results update in real-time as the user types. Use of useEffect: To debounce the search input and perform API requests only after the user has stopped typing for a specified duration. Learning Outcome: Understand how to debounce inputs and manage asynchronous operations within effects.

Dynamic Page Title

Objective: Create a component that updates the document title based on its content. Use of useEffect: To change the document title whenever the component mounts or its content changes. Learning Outcome: Manipulate browser APIs and handle side effects related to DOM updates.

We will supply the css for them. The steps will only focus on the JSX and the useEffect hook.

Acceptance criteria

  • [ ] add your workshop files to the react project folder in the front-end cert directory

jdwilkin4 avatar Sep 03 '24 17:09 jdwilkin4