You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
sources-peterbabic.dev/store-arrays-svelte-localst...
Peter Babič 60dcc7e874
insert posts sources
3 years ago
..
scripts insert posts sources 3 years ago
src insert posts sources 3 years ago
.gitignore insert posts sources 3 years ago
README.md insert posts sources 3 years ago
demo.gif insert posts sources 3 years ago
package-lock.json insert posts sources 3 years ago
package.json insert posts sources 3 years ago
rollup.config.js insert posts sources 3 years ago

README.md

Using CSS selectors on Markdown in JS

This is a source code repository for the blog post

https://peterbabic.dev/blog/using-css-selectors-on-markdown

Setup

git clone https://git.peterbabic.dev/demo/arrays-svelte-localstorage.git
cd arrays-svelte-localstorage
npm install
npm run start

Now navigate to http://localhost:5000/. You should be able to persist data in the array after the refresh, as seen below.

Data in the array persist after refresh

License

MIT