Learn Topics: React Components, Props, and State & Event Handling 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
yarn install
to install dependencies. - Run
yarn start
to run the local development server.
In Wave 01, we will explore the starter code for Task List Front End.
Read through the code in App.js
, TaskList.js
and Task.js
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
- How is the
strikethroughstyle applied when the task title is clicked?- Consider updating the appropriate rule sets to change the text or background color when a task is marked complete.
- 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.