Adarsh• 1,560
@adram3l3ch
Posted
Hey yoy did great 👍. You can solve the local storage problem using useEffect.
useEffect(()=>
localStorage.setItem
("comments",JSON.stringify(state))
,state)
Marked as helpful
1
kreyson• 60
@kreyson999
Posted
@adram3l3ch thank you so much, you really helped me!
1