@syncstate/react

@syncstate/react lets your React components read data from a SyncState store and dispatch actions to the store using hooks.

Usage no npm install needed!

<script type="module">
  import syncstateReact from 'https://cdn.skypack.dev/@syncstate/react';
</script>

README

SyncState React

Introduction

@syncstate/react lets your React components read data from a SyncState store and dispatch actions to the store using hooks.

Provider

See here for usage.

useDoc()

See here for usage.

Example

A basic Todo example demonstrating the use of Provider and useDoc