Skip to content

Commit 3e83810

Browse files
johnreespeterszerzo
authored andcommitted
trying to get concurrent mode to work
1 parent e9bb33c commit 3e83810

File tree

5 files changed

+1136
-1529
lines changed

5 files changed

+1136
-1529
lines changed

package.json

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,29 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@nx-js/observer-util": "^4.2.2",
7-
"@teamwork/websocket-json-stream": "^2.0.0",
8-
"@testing-library/jest-dom": "^4.2.4",
9-
"@testing-library/react": "^9.3.2",
10-
"@testing-library/user-event": "^7.1.2",
11-
"@types/jest": "^24.0.0",
12-
"@types/node": "^12.0.0",
13-
"@types/react": "^16.9.0",
14-
"@types/react-dom": "^16.9.0",
15-
"@types/uuid": "^8.0.0",
16-
"comlink": "^4.3.0",
176
"express": "^4.17.1",
18-
"nanoid": "^3.1.10",
197
"random-words": "^1.1.1",
20-
"react": "^16.13.1",
21-
"react-dom": "^16.13.1",
8+
"react": "^0.0.0-experimental-4c8c98ab9",
9+
"react-dom": "^0.0.0-experimental-4c8c98ab9",
2210
"react-router-dom": "^5.2.0",
23-
"react-scripts": "3.4.1",
24-
"react-use-comlink": "^2.0.1",
2511
"reconnecting-websocket": "^4.4.0",
2612
"sharedb": "^1.4.0",
2713
"typescript": "~3.7.2",
2814
"uuid": "^8.2.0",
2915
"ws": "^7.3.1"
3016
},
17+
"devDependencies": {
18+
"@teamwork/websocket-json-stream": "^2.0.0",
19+
"@types/jest": "^24.0.0",
20+
"@types/node": "^12.0.0",
21+
"@types/react": "^16.9.43",
22+
"@types/react-dom": "^16.9.8",
23+
"@types/uuid": "^8.0.0",
24+
"concurrently": "^5.2.0",
25+
"react-scripts": "3.4.1",
26+
"typescript": "^3.9.7",
27+
"comlink": "^4.3.0"
28+
},
3129
"scripts": {
3230
"start": "concurrently 'node server' 'react-scripts start'",
3331
"build": "react-scripts build",
@@ -48,10 +46,5 @@
4846
"last 1 firefox version",
4947
"last 1 safari version"
5048
]
51-
},
52-
"devDependencies": {
53-
"concurrently": "^5.2.0",
54-
"ts-node": "^8.10.2",
55-
"ts-node-dev": "^1.0.0-pre.52"
5649
}
5750
}

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import App from "./App";
44
import * as serviceWorker from "./serviceWorker";
55
import "./style.css";
66

7-
ReactDOM.render(
7+
ReactDOM.createRoot(
88
<React.StrictMode>
99
<App />
1010
</React.StrictMode>,
1111
document.getElementById("root")
12-
);
12+
).render(<App />);
1313

1414
// If you want your app to work offline and load faster, you can change
1515
// unregister() to register() below. Note this comes with some pitfalls.

src/react-app-env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
/// <reference types="react-scripts" />
2+
/// <reference types="react-dom/experimental" />
3+
/// <reference types="react/experimental" />

tsconfig.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
4+
"lib": ["dom", "dom.iterable", "esnext"],
95
"allowJs": true,
106
"skipLibCheck": true,
117
"esModuleInterop": true,
@@ -19,7 +15,5 @@
1915
"noEmit": true,
2016
"jsx": "react"
2117
},
22-
"include": [
23-
"src"
24-
]
18+
"include": ["src"]
2519
}

0 commit comments

Comments
 (0)