The Todo Component
Learn how the Todo component works.
We’ll go through each component of the to-do list application one by one. The first component is the Todo
component.
{ "12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true, "40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true }
Todo component
Note: Once the server starts, click the URL next to “Your app can be found at:” to view the output.
Props
Each Todo
component is an individual task. The parent component for the Todo
must contain a for
loop, or it will map
over the different task items and render a Todo
component in each iteration.
for(some condition){
<Todo/>
}
//
...