Notes app | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Notes app

I know Sololearn doesn't support localStorage. Please help in this code https://code.sololearn.com/W3oAyW1FSqJW/?ref=app

30th Dec 2022, 1:14 PM
Saddam Hussain
Saddam Hussain - avatar
3 ответов
+ 2
Which kind of help do you need?
30th Dec 2022, 2:21 PM
Lisa
Lisa - avatar
+ 2
In Sololearn you will not be able to save the application state between independent runs of the code. Every time the code is executed in a new blank sandbox context. The only possible persistence option is if you can save the data in an external database, such as Firebase, but this is not recommended because there is no secure way to store your database login credentials, and you can easily surpass free storage or ingress limits with a cloud provider. Ultimately you can host your whole application on another cloud platform and make a web code in SL to just embed your site. For LocalStorage, I don't have a solution.
30th Dec 2022, 4:14 PM
Tibor Santa
Tibor Santa - avatar
+ 1
Lisa After adding notes it adds in a paragraph but after I refresh the page it doesn't remains in the paragraph . and for every notes I want to add in different paragraph.
31st Dec 2022, 4:04 AM
Saddam Hussain
Saddam Hussain - avatar