reculperar as informações no Local Storage com ReactJs code example
Example: salvar no localStorage react
const list = JSON.parse(localStorage.getItem("cart"))
list.push(product);
localStorage.setItem("cart", JSON.stringify(list));
const list = JSON.parse(localStorage.getItem("cart"))
list.push(product);
localStorage.setItem("cart", JSON.stringify(list));