import React, { useEffect, useState } from "react"; const Notes = () => { const [data, setData] = useState([]); useEffect(() => { const existingDataString = localStorage.getItem("myData"); if (existingDataString) { const existingData = JSON.parse(existingDataString); setData(existingData); } }, []); return (