Skip to content

Commit 63ad8bc

Browse files
committed
[fix] White Screen in Production by rolling back to React 18
1 parent 7b64ab3 commit 63ad8bc

5 files changed

Lines changed: 543 additions & 361 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ which is inspired by [WebCell scaffold][5].
1111
## Technology stack
1212

1313
- Language: [TypeScript v5][2]
14-
- Component engine: [PReact v10][1]
14+
- Component engine: [React v18][1]
1515
- State management: [MobX v6][3]
1616
- Component suite: [Ant Design v5][4] + [Bootstrap v5][9] (CSS utilities)
1717
- HTTP Client: [KoAJAX v1][10]

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"mobx-react-helper": "^0.3.1",
2525
"mobx-restful": "^1.0.0",
2626
"mobx-restful-table": "^2.0.0-rc.1",
27-
"preact": "^10.22.0",
27+
"react": "^18.3.1",
28+
"react-dom": "^18.3.1",
2829
"react-router": "^6.24.0",
2930
"react-router-class-tools": "^0.1.3",
3031
"react-router-dom": "^6.24.0",
@@ -37,6 +38,8 @@
3738
"@parcel/transformer-webmanifest": "~2.12.0",
3839
"@types/lodash": "^4.17.5",
3940
"@types/node": "^18.19.39",
41+
"@types/react": "^18.3.3",
42+
"@types/react-dom": "^18.3.0",
4043
"husky": "^9.0.11",
4144
"lint-staged": "^15.2.7",
4245
"parcel": "~2.12.0",
@@ -45,12 +48,6 @@
4548
"typescript": "~5.5.2",
4649
"workbox-cli": "^7.1.0"
4750
},
48-
"alias": {
49-
"react": "preact/compat",
50-
"react-dom/test-utils": "preact/test-utils",
51-
"react-dom": "preact/compat",
52-
"react/jsx-runtime": "preact/jsx-runtime"
53-
},
5451
"prettier": {
5552
"singleQuote": true,
5653
"trailingComma": "none",

0 commit comments

Comments
 (0)