Skip to content

Commit c0bfef6

Browse files
author
Anand Gupta
committed
API to support the concurrent rendering and upgraded storybook to ^6.5.10
1 parent 53bba66 commit c0bfef6

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [10.x, 12.x, 14.x]
19+
node-version: [12.x, 14.x, 16.x]
2020

2121
steps:
2222
- uses: actions/checkout@v2

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"dependencies": {
8484
"@babel/core": "^7.13.14",
8585
"@babel/node": "^7.13.13",
86-
"@storybook/react": "^6.1.20",
86+
"@storybook/react": "^6.5.10",
8787
"axios": "^0.27.2",
8888
"eslint-plugin-prettier": "^3.4.0",
8989
"prop-types": "^15.7.2",

src/index.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
/* eslint-disable no-console */
22
import React from 'react';
3-
import ReactDOM from 'react-dom';
3+
import { createRoot } from 'react-dom/client';
44
import { Provider } from 'react-redux';
55
import Routes from './routes/Routes';
66
import Store from './redux/store';
77

8-
ReactDOM.render(
8+
const container = document.getElementById('root');
9+
const root = createRoot(container);
10+
root.render(
911
<Provider store={Store}>
1012
<Routes />
1113
</Provider>,
12-
document.getElementById('root'),
1314
);
1415

1516
if (!__DEVELOPMENT__ && !__SERVER__) {

0 commit comments

Comments
 (0)