π¦»πΌ Handling events
Learning Objectives
narrative
Complete π§πΎβπ Responding to Events
π§ Think back to JS2 where you learned how to handle Events
question
A: By passing the handler function as a prop, like onClick={handleClick}
.
A: Accidentally calling the function (onClick={handleClick()})
instead of passing it.
π¦ State
Learning Objectives
narrative
π§ Search for “state” in the curriculum
Fun fact, you first met the concept of state in CYF Blocks
question
A: State lets components remember information between renders.
A: Employ the useState
Hook to create a state variable and a setter function.
πͺ Re-Rendering
Learning Objectives
narrative
Complete π§πΎβπ Render and Commit
question
A: Triggering a render, rendering the component, and committing to the DOM
A: Because it should not change any objects or variables and always produce the same output for the same inputs.
Prep Problem Solving
π€π½ FeedbackLearning Objectives
Introduction
Problem-solving skills are skills that enable people to handle unexpected situations or difficult challenges at work. This is an introduction to a few techniques on how to approach problems and solve them.
The IDEA Module
π― Goal: To get familiar with the IDEA model to solve problems. (10 minutes)
- Watch this video which explains the IDEA model to solve problems.
Design Thinking
π― Goal: To become familiar with the Design Thinking process to solve problems. (10 minutes)
- Watch this video, which explains the Design Thinking process to solve problems.