Skip to content

Commit

Permalink
Fix miette hook name in App
Browse files Browse the repository at this point in the history
  • Loading branch information
chompaa committed Jun 20, 2024
1 parent e853b52 commit df42653
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions playground/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { interpret, set_hook, init_panic_hook } from "dom-wasm";
import Ansi from "ansi-to-react";
import { init_miette_hook, init_panic_hook, interpret } from "dom-wasm";
import { editor } from "monaco-editor";
import { useRef, useState, useEffect } from "react";
import { useEffect, useRef, useState } from "react";
import "./App.css";
import Editor from "./components/Editor";
import TabItem from "./components/TabItem";
import TabList from "./components/TabList";
import useOutput from "./hooks/useOutput";
import Ansi from "ansi-to-react";

const App = () => {
const editorRef = useRef<null | editor.IStandaloneCodeEditor>(null);
Expand All @@ -27,8 +27,8 @@ const App = () => {
};

useEffect(() => {
init_miette_hook();
init_panic_hook();
set_hook();
}, []);

return (
Expand Down

0 comments on commit df42653

Please sign in to comment.