React tutorial

Topics

Build a TODO list app

  • create boilerplate: npx create-next-app react-todo-list
  • edit pages/index.js, add a component <TodoList/> (put it in components/TodoList.js)
  • add a "controlled input" i.e. <input type="text"/> with value and onChange props controlled by React state
  • add a "plus" button to add the input's value to our todo list. also, it should reset the input's value
  • add ability to delete each list item