mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 14:59:42 +02:00
Back to React
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { render } from 'preact';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import { App } from './App';
|
||||
import { setAppearance } from './lib/theme/window';
|
||||
import './main.css';
|
||||
@@ -6,4 +6,4 @@ import './main.css';
|
||||
setAppearance();
|
||||
|
||||
// root holds our app's root DOM Element:
|
||||
render(<App />, document.getElementById('root') as HTMLElement);
|
||||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(<App />);
|
||||
|
||||
Reference in New Issue
Block a user