Skip to content

Commit

Permalink
website: upgrade react to v18.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Aug 20, 2022
1 parent 178a34f commit 302ec15
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
10 changes: 4 additions & 6 deletions example/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import App from './app/App';

ReactDOM.render(
<App />,
document.getElementById('root'),
);
const container = document.getElementById('root');
const root = createRoot(container!);
root.render(<App />);
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@
"monaco-editor": "^0.33.0"
},
"devDependencies": {
"@types/react": "~17.0.39",
"@types/react-dom": "~17.0.13",
"@kkt/less-modules": "~7.1.1",
"@kkt/raw-modules": "~7.1.0",
"@kkt/scope-plugin-options": "~7.1.0",
"@uiw/react-markdown-preview": "~4.0.5",
"@uiw/react-github-corners": "~1.5.3",
"@wcj/dark-mode": "~1.0.12",
"code-example": "^3.3.1",
"kkt": "~7.1.0",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@kkt/less-modules": "^7.2.0",
"@kkt/raw-modules": "^7.2.0",
"@kkt/scope-plugin-options": "^7.2.0",
"@uiw/react-markdown-preview": "^4.0.24",
"@uiw/react-github-corners": "^1.5.14",
"@wcj/dark-mode": "^1.0.15",
"code-example": "^3.3.6",
"kkt": "^7.2.0",
"monaco-editor-webpack-plugin": "~7.0.1",
"react": "~17.0.2",
"react-dom": "~17.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"source-map-explorer": "~2.5.2",
"tsbb": "~3.7.2"
"tsbb": "^3.7.6"
},
"browserslist": {
"production": [
Expand Down

0 comments on commit 302ec15

Please sign in to comment.