React

Bad case

単一の情報源ではない

tsx
const [todos, setTodos] = useState<Todo[]>([]); const [completedTodos, setCompletedTodos] = useState<Todo[]>([]);

Bad Habits of Mid-Level React Developers - DEV Community 👩‍💻👨‍💻