Skip to content

Commit

Permalink
chore: fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bobstrange committed Apr 28, 2024
1 parent c96f3f0 commit b5dd9f3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ export default defineContentScript({
position: "inline",
anchor: "body",
onMount: (container) => {
const root = ReactDOM.createRoot(container);
const app = document.createElement("div");
container.append(app);

const root = ReactDOM.createRoot(app);
root.render(<App />);
return root;
},
Expand Down

0 comments on commit b5dd9f3

Please sign in to comment.