Svelte State Management: Creating Contact Formby@the_rock
2,216 reads

Svelte State Management: Creating Contact Form

February 1st 2020
3 min
by @the_rock 2,216 reads
tldt arrow
Read on Terminal ReaderPrint this storyRead this story w/o Javascript

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

@the_rock

Sasha

About @the_rock
LEARN MORE ABOUT @THE_ROCK'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart
Sasha HackerNoon profile picture
by Sasha @the_rock.Software Developer from monday to friday (Healthcare sector), Game Developer in free time
Portfolio

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa