Armazene dados para os navegadores LocalStorage
export const setToLS = (key, value) => {
window.localStorage.setItem(key, JSON.stringify(value));
}
export const getFromLS = key => {
const value = window.localStorage.getItem(key);
if (value) {
return JSON.parse(value);
}
}
Important Impala