# Local Storage

## Local Storage Overview

{% hint style="warning" %}
You should now use [stored variables](https://docs.thunkable.com/snap-to-place/variables#app-stored-and-cloud-variables) instead of adding a Local Storage component. This will work the same way in the background but will save you a lot of blocks. To work with tabular data in your app please use the [local DB](https://docs.thunkable.com/snap-to-place/local-db) component in your app.
{% endhint %}

This storage option is useful for saving simple info on the device, especially helpful for remembering user's setting from a previous session.

## Save Data

To save data locally to your phone, simply name a `key` to store a `value` under. If you have a previous `value` in your `key`, saving it will override that `value`

![](https://689802330-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-LAn5wecEraNWaG7Ig2g%2F-LAn6Egc5yhMFI-0p1O6%2Flocal-storage-%E2%9C%95-fig-1.png?generation=1524497186680914\&alt=media)

## Get Data

![](https://689802330-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LAn5scXl2uqUJUOqkJo%2F-LAn5wecEraNWaG7Ig2g%2F-LAn6EhaX0XOe3ZIIHrC%2Flocal-storage-%E2%9C%95-fig-2.png?generation=1524497186648695\&alt=media)
