Skip to content

Commit

Permalink
Merge pull request #528 from jamesgpearce/patch-1
Browse files Browse the repository at this point in the history
Add missing getting-started steps
  • Loading branch information
dmonad committed May 5, 2023
2 parents 2e9a648 + 61eeaef commit 5db1eed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -169,6 +169,9 @@ PORT=1234 node ./node_modules/y-websocket/bin/server.js
### Example: Observe types

```js
import * as Y from 'yjs';

const doc = new Y.Doc();
const yarray = doc.getArray('my-array')
yarray.observe(event => {
console.log('yarray was modified')
Expand Down

0 comments on commit 5db1eed

Please sign in to comment.