Skip to content

Commit 6964a1b

Browse files
committed
fix(syntax): 🔧 upgrade syntax
1 parent 36b5057 commit 6964a1b

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.postcssrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"plugins": {
3-
"postcss-import": true,
4-
"tailwindcss": true,
5-
"postcss-nested": true
3+
"postcss-import": {},
4+
"tailwindcss/nesting": {},
5+
"tailwindcss": {}
66
}
77
}

src/main.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
import * as React from "react";
2-
import * as ReactDOM from "react-dom";
1+
import React from "react";
2+
import ReactDOM from "react-dom/client";
3+
34
import { App } from "./views/App";
45

5-
ReactDOM.render(React.createElement(App), document.getElementById("app"));
6+
ReactDOM.createRoot(document.getElementById("app")!).render(
7+
React.createElement(App)
8+
);

0 commit comments

Comments
 (0)