From 61eeaef22612162cdc7e942b51130fe338ec1715 Mon Sep 17 00:00:00 2001
From: James Pearce <github@tripleodeon.com>
Date: Sun, 30 Apr 2023 16:31:46 -0400
Subject: [PATCH] Add missing getting-started steps

---
 README.md | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/README.md b/README.md
index 08b331fc..8e5fff2b 100644
--- a/README.md
+++ b/README.md
@@ -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')