Question : local storage error typescript
Answered by : gabriel-lepri
JSON.parse(localStorage.getItem('moonPortfolio') || '{}');
Source : https://stackoverflow.com/questions/54715260/typescript-json-parse-error-type-null-is-not-assignable-to-type-string | Last Update : Tue, 23 Aug 22