From 09f7448b46aa3caa1495ee498ba7a4935096c12d Mon Sep 17 00:00:00 2001 From: afrid18 Date: Wed, 27 Sep 2023 17:33:42 +0530 Subject: [PATCH] code format --- src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 83875a9..68b6d9e 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,4 +1,4 @@ -import { useState, useRef, useEffect } from "react"; +import { useState, useEffect } from "react"; import AddTodoForm from "./AddTodoForm"; import TodoList from "./TodoList"; import "./App.css"; @@ -6,7 +6,7 @@ import "./App.css"; function App() { const [errorMsg, setErrorMsg] = useState(""); const [todoItems, setTodoItems] = useState( - JSON.parse(localStorage.getItem("todos")) || [] + JSON.parse(localStorage.getItem("todos")) || [], ); function toggleTodo(id, completed) {