Skip to content

Commit

Permalink
Use hono/jsx/dom/client API.
Browse files Browse the repository at this point in the history
  • Loading branch information
usualoma committed May 26, 2024
1 parent 0e84b8d commit 3877355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file modified hono.tgz
Binary file not shown.
7 changes: 4 additions & 3 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render } from "hono/jsx/dom";
// import { render } from "react-dom"
import { createRoot } from "hono/jsx/dom/client";
// import { render } from "react-dom/client"
import { SpinnerCircular } from "spinners-react";
import { ToastContainer, toast } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";
Expand Down Expand Up @@ -57,4 +57,5 @@ function App() {
);
}

render(<App />, document.getElementById("app")!);
const root = createRoot(document.getElementById("app")!);
root.render(<App />);

0 comments on commit 3877355

Please sign in to comment.