Skip to content

Commit

Permalink
♻ React18対応
Browse files Browse the repository at this point in the history
  • Loading branch information
local-bias committed Sep 22, 2022
1 parent 9055794 commit 8c36573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';

import App from './app';

const main = (pluginId: string): void => {
render(<App {...{ pluginId }} />, document.getElementById('settings'));
createRoot(document.getElementById('settings')!).render(<App {...{ pluginId }} />);
};

export default main;

0 comments on commit 8c36573

Please sign in to comment.