We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fcb547 commit d22b0cbCopy full SHA for d22b0cb
src/App.js
@@ -13,9 +13,7 @@ const App = () => {
13
useEffect(() => {
14
const savedNotes = JSON.parse(localStorage.getItem("react-notes-app-data"));
15
16
- if (savedNotes) {
17
- setNotes(savedNotes);
18
- }
+ savedNotes && setNotes(savedNotes);
19
}, []); // empty array runs only on first load
20
21
0 commit comments