Skip to content

Commit

Permalink
use react experimental channel
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Oct 22, 2019
1 parent dc47dd2 commit a439633
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions examples/01_minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "latest",
"react-dom": "latest",
"react": "experimental",
"react-dom": "experimental",
"use-context-selector": "latest",
"react-scripts": "^2.1.1"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/01_minimal/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ const App = () => (
</StrictMode>
);

ReactDOM.unstable_createRoot(document.getElementById('app')).render(<App />);
ReactDOM.createRoot(document.getElementById('app')).render(<App />);
4 changes: 2 additions & 2 deletions examples/02_typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"dependencies": {
"@types/react": "^16.7.6",
"@types/react-dom": "^16.0.9",
"react": "latest",
"react-dom": "latest",
"react": "experimental",
"react-dom": "experimental",
"use-context-selector": "latest",
"react-scripts": "^2.1.1",
"typescript": "^3.1.6"
Expand Down
2 changes: 1 addition & 1 deletion examples/02_typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import {
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
unstable_createRoot as createRoot,
createRoot,
} from 'react-dom';

import App from './App';
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"html-webpack-plugin": "^3.2.0",
"jest": "^24.9.0",
"microbundle": "^0.12.0-next.3",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"react": "experimental",
"react-dom": "experimental",
"ts-loader": "^6.1.2",
"typescript": "^3.6.3",
"webpack": "^4.41.0",
Expand Down

0 comments on commit a439633

Please sign in to comment.