Skip to content

Commit b807608

Browse files
committed
update latest experimental react (unstable_*)
1 parent 890df16 commit b807608

File tree

13 files changed

+1767
-1611
lines changed

13 files changed

+1767
-1611
lines changed

examples/01_minimal/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ const App = () => (
6666
</StrictMode>
6767
);
6868

69-
ReactDOM.createRoot(document.getElementById('app')).render(<App />);
69+
ReactDOM.unstable_createRoot(document.getElementById('app')).render(<App />);

examples/02_typescript/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference types="react-dom/experimental" />
33

44
import React from 'react';
5-
import { createRoot } from 'react-dom';
5+
import { unstable_createRoot as createRoot } from 'react-dom';
66

77
import App from './App';
88

examples/03_deep/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference types="react-dom/experimental" />
33

44
import React from 'react';
5-
import { createRoot } from 'react-dom';
5+
import { unstable_createRoot as createRoot } from 'react-dom';
66

77
import App from './App';
88

examples/04_immer/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference types="react-dom/experimental" />
33

44
import React from 'react';
5-
import { createRoot } from 'react-dom';
5+
import { unstable_createRoot as createRoot } from 'react-dom';
66

77
import App from './App';
88

examples/05_localstate/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference types="react-dom/experimental" />
33

44
import React from 'react';
5-
import { createRoot } from 'react-dom';
5+
import { unstable_createRoot as createRoot } from 'react-dom';
66

77
import App from './App';
88

examples/06_memoization/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference types="react-dom/experimental" />
33

44
import React from 'react';
5-
import { createRoot } from 'react-dom';
5+
import { unstable_createRoot as createRoot } from 'react-dom';
66

77
import App from './App';
88

examples/07_multistore/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference types="react-dom/experimental" />
33

44
import React from 'react';
5-
import { createRoot } from 'react-dom';
5+
import { unstable_createRoot as createRoot } from 'react-dom';
66

77
import App from './App';
88

examples/08_dynamic/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference types="react-dom/experimental" />
33

44
import React from 'react';
5-
import { createRoot } from 'react-dom';
5+
import { unstable_createRoot as createRoot } from 'react-dom';
66

77
import App from './App';
88

examples/09_thunk/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference types="react-dom/experimental" />
33

44
import React from 'react';
5-
import { createRoot } from 'react-dom';
5+
import { unstable_createRoot as createRoot } from 'react-dom';
66

77
import App from './App';
88

examples/12_async/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/// <reference types="react-dom/experimental" />
33

44
import React, { createContext, useContext } from 'react';
5-
import { createRoot } from 'react-dom';
5+
import { unstable_createRoot as createRoot } from 'react-dom';
66
import { Provider } from 'reactive-react-redux';
77
import { createStore } from 'redux';
88

examples/13_memo/src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1+
// eslint-disable-next-line spaced-comment
2+
/// <reference types="react-dom/experimental" />
3+
14
import React from 'react';
2-
import {
3-
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
4-
// @ts-ignore
5-
createRoot,
6-
} from 'react-dom';
5+
import { unstable_createRoot as createRoot } from 'react-dom';
76

87
import App from './App';
98

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,35 +47,35 @@
4747
"dependencies": {},
4848
"devDependencies": {
4949
"@babel/cli": "^7.8.4",
50-
"@babel/core": "^7.8.7",
51-
"@babel/preset-env": "^7.8.7",
52-
"@babel/preset-react": "^7.8.3",
53-
"@testing-library/react": "^10.0.1",
54-
"@types/react": "^16.9.23",
55-
"@types/react-dom": "^16.9.5",
50+
"@babel/core": "^7.9.6",
51+
"@babel/preset-env": "^7.9.6",
52+
"@babel/preset-react": "^7.9.4",
53+
"@testing-library/react": "^10.0.4",
54+
"@types/react": "^16.9.35",
55+
"@types/react-dom": "^16.9.8",
5656
"@types/redux-logger": "^3.0.7",
57-
"@typescript-eslint/eslint-plugin": "^2.24.0",
58-
"@typescript-eslint/parser": "^2.24.0",
59-
"babel-loader": "^8.0.6",
60-
"eslint": "^6.8.0",
57+
"@typescript-eslint/eslint-plugin": "^2.31.0",
58+
"@typescript-eslint/parser": "^2.31.0",
59+
"babel-loader": "^8.1.0",
60+
"eslint": "^7.0.0",
6161
"eslint-config-airbnb": "^18.1.0",
62-
"eslint-plugin-import": "^2.20.1",
62+
"eslint-plugin-import": "^2.20.2",
6363
"eslint-plugin-jsx-a11y": "^6.2.3",
6464
"eslint-plugin-react": "^7.19.0",
65-
"eslint-plugin-react-hooks": "^2.5.0",
66-
"html-webpack-plugin": "^3.2.0",
67-
"immer": "^6.0.2",
68-
"jest": "^25.1.0",
65+
"eslint-plugin-react-hooks": "^4.0.0",
66+
"html-webpack-plugin": "^4.3.0",
67+
"immer": "^6.0.5",
68+
"jest": "^26.0.1",
6969
"npm-run-all": "^4.1.5",
7070
"react": "experimental",
7171
"react-dom": "experimental",
7272
"redux": "^4.0.5",
7373
"redux-thunk": "^2.3.0",
74-
"ts-loader": "^6.2.1",
74+
"ts-loader": "^7.0.3",
7575
"typescript": "^3.8.3",
76-
"webpack": "^4.42.0",
76+
"webpack": "^4.43.0",
7777
"webpack-cli": "^3.3.11",
78-
"webpack-dev-server": "^3.10.3"
78+
"webpack-dev-server": "^3.11.0"
7979
},
8080
"peerDependencies": {
8181
"react": ">=16.8.0",

0 commit comments

Comments
 (0)