Learn Topics: React Components and Props required for this wave
Use the following steps to get started:
- One team member should fork and clone the repository.
- Add other team member(s) as collaborators in GitHub
- Run
npm install
to install dependencies. - Run
npm dev
to run the local development server.
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:
- What
props
doesTask
have? Where do they come from? - The
Task
component uses destructuring to read in the propsconst Task = ({ id, title, isComplete }) => {...
- How would the code change if
{id, title, isComplete}
were replaced withprops
? - Consider making this change and the subsequent necessary changes through the rest of the component to deepen your understanding of the code.
- How would the code change if
- What
props
doesTaskList
have? Where do they come from? - Where is the function
getTaskListJSX
called inTaskList
?- How would the code change without this helper function?
- What component is
TASKS
passed to inApp
?- How does the component pass
TASKS
? - What element is the component wrapped in?
- How does the component pass
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.