Install it using npm:
Creating your first state
In the following sections we'll cover in depth how to use Visly State. For now we'll just create a simple state container with a counter which we can read and update from a React component.
This example shows how we can store global application state, read & display it in our UI, and finally how to update the state. The component will automatically re-render when the count changes as it is subscribed to it by calling