Reactjs – JSON.parse unexpected character localStorage
I am trying to save data to localStorage but I am getting error Uncaught SyntaxError: JSON.parse: unexpected character at... import React, { useEffect, useState } from "react"; import "./Blogs.css"; //getting values from localstorage const getDataFromLS = () => { const…