Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for React 18 #2459

Merged
merged 37 commits into from
Apr 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
77aca49
Add support for React 18
nstepien Jun 11, 2021
fffcd9a
Usse the new createRoot api to render storybook
Jun 11, 2021
2f83275
Fix variable
Jun 11, 2021
bc79f07
Use flushSync to prevent showing partially loaded grid
Jun 15, 2021
72cf4d5
Merge branch 'main' into react18
nstepien Jul 6, 2021
bbaa03a
Only flushSync on the initial render
nstepien Jul 6, 2021
64f3561
Don't need flushSync
nstepien Jul 6, 2021
848da2a
Merge branch 'main' into react18
nstepien Aug 26, 2021
7285540
Merge branch 'main' into react18
nstepien Sep 13, 2021
eeab342
@testing-library/react@alpha
nstepien Sep 13, 2021
2fd4b5e
Merge remote-tracking branch 'origin/main' into react18
nstepien Sep 13, 2021
fd86194
Merge branch 'main' into react18
Dec 14, 2021
17b232f
Update react
Dec 14, 2021
1bcd1f3
Merge branch 'main' into react18
nstepien Jan 14, 2022
bfaa800
Merge branch 'main' into react18
amanmahajan7 Jan 24, 2022
f06a96c
Merge branch 'main' into react18
Feb 10, 2022
aa77587
Merge branch 'main' into react18
amanmahajan7 Feb 16, 2022
7ae957b
Merge branch 'main' into react18
amanmahajan7 Feb 23, 2022
97898fd
Merge branch 'main' into react18
Mar 24, 2022
1748656
graduation from rc
nstepien Mar 29, 2022
064d968
Merge remote-tracking branch 'origin/main' into react18
nstepien Mar 29, 2022
6a9dec4
temporarily disable some website pages to fix the build, react-dnd ha…
nstepien Mar 29, 2022
0806472
update react-refresh
nstepien Mar 29, 2022
dc8f410
@testing-library/react@13
nstepien Mar 31, 2022
0254260
Merge branch 'main' into react18
nstepien Apr 1, 2022
05c5af2
Merge branch 'main' into react18
nstepien Apr 4, 2022
e62f201
Update react-refresh-webpack-plugin
nstepien Apr 4, 2022
27ea8bc
react-dnd@16
nstepien Apr 6, 2022
f4eb37b
use `react-dom/client`
nstepien Apr 6, 2022
6b66f12
Merge branch 'main' into react18
nstepien Apr 6, 2022
a70d620
fix type issue
nstepien Apr 6, 2022
028abe5
fix a couple test warnings
nstepien Apr 6, 2022
457b375
name it ref
nstepien Apr 6, 2022
6b5a7f8
fix last test warning
nstepien Apr 6, 2022
ba4230f
update linaria
nstepien Apr 6, 2022
9619dca
Merge branch 'main' into react18
nstepien Apr 7, 2022
87362b4
mention React 18 in the README
nstepien Apr 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

## Features

- [React 16.14+ & 17.0+](package.json) support
- [React 16.14+, 17.0+, and 18.0+](package.json) support
- [Evergreen browsers and server-side rendering](browserslist) support
- Tree-shaking support and only [one npm dependency](package.json) to keep your bundles slim
- Great performance thanks to virtualization: columns and rows outside the viewport are not rendered
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@
"@babel/preset-typescript": "^7.16.7",
"@babel/runtime": "^7.16.7",
"@faker-js/faker": "^6.1.1",
"@linaria/babel-preset": "^3.0.0-beta.17",
"@linaria/core": "^3.0.0-beta.15",
"@linaria/rollup": "^3.0.0-beta.17",
"@linaria/shaker": "^3.0.0-beta.17",
"@linaria/webpack5-loader": "^3.0.0-beta.17",
"@linaria/babel-preset": "^3.0.0-beta.18",
"@linaria/core": "^3.0.0-beta.18",
"@linaria/rollup": "^3.0.0-beta.18",
"@linaria/shaker": "^3.0.0-beta.18",
"@linaria/webpack5-loader": "^3.0.0-beta.18",
"@microsoft/api-extractor": "^7.19.4",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.4",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.4.0",
"@types/lodash": "^4.14.178",
Expand Down Expand Up @@ -91,12 +91,12 @@
"postcss-loader": "^6.2.1",
"postcss-nested": "^5.0.6",
"prettier": "2.6.2",
"react": "^17.0.2",
"react": "^18.0.0",
"react-contextmenu": "^2.14.0",
"react-dnd": "^15.1.0",
"react-dnd-html5-backend": "^15.1.1",
"react-dom": "^17.0.2",
"react-refresh": "^0.11.0",
"react-dnd": "^16.0.0",
"react-dnd-html5-backend": "^16.0.0",
"react-dom": "^18.0.0",
"react-refresh": "^0.12.0",
"react-router-dom": "^6.2.1",
"rollup": "^2.63.0",
"rollup-plugin-postcss": "^4.0.2",
Expand All @@ -108,7 +108,7 @@
"xlsx": "^0.18.0"
},
"peerDependencies": {
"react": "^16.14 || ^17.0",
"react-dom": "^16.14 || ^17.0"
"react": "^16.14 || ^17.0 || ^18.0",
"react-dom": "^16.14 || ^17.0 || ^18.0"
}
}
7 changes: 3 additions & 4 deletions website/root.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { StrictMode, useState } from 'react';
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';
import { css } from '@linaria/core';
import { HashRouter as Router, Routes, Route, Navigate } from 'react-router-dom';

Expand Down Expand Up @@ -118,9 +118,8 @@ function Root() {
);
}

render(
createRoot(document.getElementById('root')!).render(
<StrictMode>
<Root />
</StrictMode>,
document.getElementById('root')
</StrictMode>
);