diff --git a/website/docs/Usage.md b/website/docs/Usage.md index 5d33b73f..d359b6b5 100644 --- a/website/docs/Usage.md +++ b/website/docs/Usage.md @@ -49,7 +49,7 @@ const storeData = async (value) => { #### Reading string value ```jsx -getData = async () => { +const getData = async () => { try { const value = await AsyncStorage.getItem('@storage_Key') if(value !== null) { @@ -65,7 +65,7 @@ getData = async () => { ```jsx -getData = async () => { +const getData = async () => { try { const jsonValue = await AsyncStorage.getItem('@storage_Key') return jsonValue != null ? JSON.parse(jsonValue) : null;