ts-react-todoList
用react + ts完成简单的todoList
import React , { useEffect , useRef , useState } from "react" ;
import "./App.css" ;
import produce from "immer" ;
interface TodoList {
id: string ;
content: string ;
}
function App ( ) {
const inputRef = useRef ( null ) ;
const [ todoList , setTodoList ] = useState ( [ ] ) ;
const deleteTodoItem = ( id : s
1