From dbf703d7a456eb682c3e06f4561e495112e10497 Mon Sep 17 00:00:00 2001
From: Jan Tuomi <jans.tuomi@gmail.com>
Date: Sat, 5 Feb 2022 17:04:34 +0200
Subject: Improve tutorial

---
 src/Editor.tsx | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

(limited to 'src/Editor.tsx')

diff --git a/src/Editor.tsx b/src/Editor.tsx
index d179b83..41bf9ff 100644
--- a/src/Editor.tsx
+++ b/src/Editor.tsx
@@ -5,8 +5,16 @@ import { useState } from "react"
 import styles from "./Editor.module.css"
 import { APIResult, submitSource } from "./api"
 
+const defaultSourceText = `define times2
+    dup +
+    ;
+
+2 times2 .
+-- prints 4
+`
+
 const Editor = () => {
-  const [sourceText, setSourceText] = useState("")
+  const [sourceText, setSourceText] = useState(defaultSourceText)
   const [result, setResult] = useState<APIResult<string, Error>>({ type: "not_yet_requested" })
   const onChange = setSourceText
 
-- 
cgit v1.3

