src/components/AddTodo.tsx import React, { useState } from "react"; import { connect } from "react-redux"; import { addTodo } from "../redux/actions"; import { TodoActions } from "../redux/actions"; type AddTodoProps = { addTodo: (input: string) => TodoActions; }; const AddTodo: React.FC<AddTodoProps> = ({ addTodo }) => { const [input, setInput] = useState(""); const updateInput = (input: string)

{{#tags}}- {{label}}
{{/tags}}