diff --git a/docs/walkthroughs/06-saving-to-a-database.md b/docs/walkthroughs/06-saving-to-a-database.md index f4544f143..67b762016 100644 --- a/docs/walkthroughs/06-saving-to-a-database.md +++ b/docs/walkthroughs/06-saving-to-a-database.md @@ -146,7 +146,7 @@ const App = () => { defaultValue={defaultValue} onChange={value => { // Serialize the value and save the string value to Local Storage. - const content = serialize(newValue) + const content = serialize(value) localStorage.setItem('content', content) }} >