simple localstorage api component