Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.77 KB

wave-01.md

File metadata and controls

31 lines (22 loc) · 1.77 KB

Wave 01: Setup and Baseline

Learn Topics: React Components and Props required for this wave

Setup

Use the following steps to get started:

  1. One team member should fork and clone the repository.
  2. Add other team member(s) as collaborators in GitHub
  3. Run npm install to install dependencies.
  4. Run npm dev to run the local development server.

Baseline

In Wave 01, we will explore the starter code for Task List Front End. For this wave you should make sure that that you are on the branch called wave-01. You might also need to either commit, stash, or abandon any changes made to the wave-01 branch to be able to switch back to the main branch.

Read through the code in App.jsx, TaskList.jsx and Task.jsx and their style sheets to understand how data and events are being handled. You may use the following questions and suggestions to guide your exploration:

  1. What props does Task have? Where do they come from?
  2. The Task component uses destructuring to read in the props const Task = ({ id, title, isComplete }) => {...
    • How would the code change if {id, title, isComplete} were replaced with props?
    • Consider making this change and the subsequent necessary changes through the rest of the component to deepen your understanding of the code.
  3. What props does TaskList have? Where do they come from?
  4. Where is the function getTaskListJSX called in TaskList?
    • How would the code change without this helper function?
  5. What component is TASKS passed to in App?
    • How does the component pass TASKS?
    • What element is the component wrapped in?

The suggestions above should give you a strong foundation for working with Task List Front End. As time allows, follow your curiosity to explore more of the code and features.