matthoffner commited on
Commit
7651da1
·
1 Parent(s): 6d6646a

Update app/editor/index.tsx

Browse files
Files changed (1) hide show
  1. app/editor/index.tsx +1 -1
app/editor/index.tsx CHANGED
@@ -59,7 +59,7 @@ export default function Editor({ defaultValue }: { defaultValue: string }) {
59
  return (
60
  <>
61
  <div id="editor" ref={ref} style={{ height: "50vh" }} />
62
- <button onClick={handlePreview}>preview</button>
63
  <div id="root" />
64
  </>
65
  }
 
59
  return (
60
  <>
61
  <div id="editor" ref={ref} style={{ height: "50vh" }} />
62
+ <button onClick={() => handlePreview()}>preview</button>
63
  <div id="root" />
64
  </>
65
  }