Skip to content

Commit

Permalink
chore(demos): compatible with react@18
Browse files Browse the repository at this point in the history
  • Loading branch information
Riyad-Arafat committed Apr 19, 2022
1 parent c65d1ef commit d9207df
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 46 deletions.
27 changes: 0 additions & 27 deletions demos/.eslintrc.json

This file was deleted.

29 changes: 16 additions & 13 deletions demos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"private": true,
"homepage": "https://formik-stepper.web.app/",
"dependencies": {
"formik-stepper": "^2.0.2",
"formik-stepper": "^2.0.4",
"gh-pages": "^3.2.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "^5.0.0",
"react-syntax-highlighter": "^15.4.5",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-scripts": "^5.0.1",
"react-syntax-highlighter": "^15.5.0",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand All @@ -29,15 +29,18 @@
"last 1 safari version"
]
},
"eslintConfig": {
"extends": [
"react-app"
]
},
"devDependencies": {
"@types/node": "^17.0.18",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"@types/node": "^17.0.25",
"@types/react": "^18.0.5",
"@types/react-dom": "^18.0.1",
"@types/react-syntax-highlighter": "^13.5.2",
"@typescript-eslint/eslint-plugin": "^5.12.0",
"@typescript-eslint/parser": "^5.12.0",
"eslint": "^8.9.0",
"eslint-plugin-react": "^7.28.0",
"typescript": "^4.5.5"
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
"typescript": "^4.6.3"
}
}
9 changes: 5 additions & 4 deletions demos/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from "react";
import ReactDOM from "react-dom";
import { createRoot } from "react-dom/client";
import "./index.css";
import App from "./App";

ReactDOM.render(
const container = document.getElementById("root") as HTMLElement;
const root = createRoot(container);
root.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
</React.StrictMode>
);
4 changes: 2 additions & 2 deletions demos/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
],
"exclude": [
"node_modules"
"
]
]
}

0 comments on commit d9207df

Please sign in to comment.