Skip to content

lb229/Lists-and-State

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

  1. Create a TodoList component that renders a ul tag with a li tag for each item contained in the todos state variable. The todos state variable should be an array of strings. The TodoList component should also contain an input tag and a button. When the button is clicked, the event handler should add the value of the input tag to the todos array.

2.Modify the TodoList component so that the input clears every time a Todo is added to the todos array. Add a "reset" button that clears the todos array when clicked.

  1. Modify the TodoList by adding a "remove" button to each li tag. When clicked, the event handler should remove corresponding item from the todos array.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages