-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[core] Drop support for React 16 #25464
Conversation
@material-ui/core: parsed: +0.39% , gzip: +0.33% |
bb16215
to
bda3910
Compare
Oh is this because the new runtime is actually bigger? |
Because it's not bundled if you're not using it. The new runtime has a separate entry point ( |
Ah got it, so the increased size is due to the old runtime in |
It's still used in some cases and will be for some time. TL;DR: |
I'm going o try @mui (material-ui changed its name to @mui in version 5) and it requires react ^17 but says it should work with 16.14 mui/material-ui#25464
I'm going o try @mui (material-ui changed its name to @mui in version 5) and it requires react ^17 but says it should work with 16.14 mui/material-ui#25464
* move variables back to open-discussions, start inf theming * remove banner from infinite homepage * bump react to 16.14 I'm going o try @mui (material-ui changed its name to @mui in version 5) and it requires react ^17 but says it should work with 16.14 mui/material-ui#25464 * Add mui-based search textbox * Make all <Searchbox /> instances controlled inputs * use searchinput in searchbox * Separate searchbox and searchinput tests * remove some old code * remove exclusive test * make field links pretty * add some tests * format * better mobile padding * reset api between tests * update yarn lock after rebase * update linting/formatting
* move variables back to open-discussions, start inf theming * remove banner from infinite homepage * bump react to 16.14 I'm going o try @mui (material-ui changed its name to @mui in version 5) and it requires react ^17 but says it should work with 16.14 mui/material-ui#25464 * Add mui-based search textbox * Make all <Searchbox /> instances controlled inputs * use searchinput in searchbox * Separate searchbox and searchinput tests * remove some old code * remove exclusive test * make field links pretty * add some tests * format * better mobile padding * reset api between tests * update yarn lock after rebase * update linting/formatting
BREAKING CHANGE
Official support for React 16 is discontinued.
Note that for now you can still use the library with React ^16.14.0.
This changes simplifies development for us a lot since we no longer have to consider certain behavior for two versions. This became especially problematic for event behavior when using the DOM.
Bundle size changes are expected since we're using the new jsx runtime.
Follow-up to #25416
https://reactjs.org/blog/2020/10/20/react-v17.html