Untitled

Untitled

RemoveAll api가 없나? 우선은 주석처리 하고 진행

Untitled

classList로 바꾸니 해결되었다. 차이는?

다음 state문제 ⇒ initialState로 app에서 변경해줌 해결

$todoInput.addEventListener('submit', (e) => {
    e.preventDefault()

    const $input = $todoInput.querySelector('input')
    const { value } = $input

    if (value.length > 0) {
      this.onAddTodo(value)
      $input.value = ''
    }
  })

Untitled