diff --git a/docs/walkthroughs/saving-and-loading-html-content.md b/docs/walkthroughs/saving-and-loading-html-content.md index c6147fe36..69a1ebc39 100644 --- a/docs/walkthroughs/saving-and-loading-html-content.md +++ b/docs/walkthroughs/saving-and-loading-html-content.md @@ -243,7 +243,7 @@ class App extends React.Component { // When the document changes, save the serialized HTML to Local Storage. onDocumentChange = (document, state) => { const string = html.serialize(state) - localStorage.set('content', string) + localStorage.setItem('content', string) } render = () => {