Method for creating an event
name? (string): Event name
Event: New event
Let's talk about what happened. We created a store and an event (addNumber), and started watching the store.
Notice the function call
addNumber(10). Whenever you will call
addNumber(10), you can look at the console and see how state changes.