paint-brush
Svelte State Management: Creating Contact Formby@the_rock
2,386 reads
2,386 reads

Svelte State Management: Creating Contact Form

by Sasha3mFebruary 1st, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this tutorial, we are going to see how to create a mutable state by using a writable object. The project is going to be a simple page where you can add contacts into a list of contacts. We will use a store object, subscribe to it, add new entries and reset its value. This component will show all contacts and update automatically, but it’s better to use $ as prefix to contacts. In this way, Svelte will manage subscription automatically.

Company Mentioned

Mention Thumbnail
featured image - Svelte State Management: Creating Contact Form
Sasha HackerNoon profile picture
Sasha

Sasha

@the_rock

Software Developer from monday to friday (Healthcare sector), Game Developer in free time

About @the_rock
LEARN MORE ABOUT @THE_ROCK'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Sasha HackerNoon profile picture
Sasha@the_rock
Software Developer from monday to friday (Healthcare sector), Game Developer in free time

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite