-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Upgrade to React 16 #1178
Upgrade to React 16 #1178
Conversation
Benchmarks when switching to React 16. Note that this initial release does not focus on performance and most of the new optimisations will be rolled out later.
|
Just discovered React-Portal does not yet work with React 16. There will be a native solution, but it's thus far undocumented. The Hovering Menu example will need to be updated by someone more skilled than myself. |
<3 Error boundaries |
React 16 is now released 🎉 https://facebook.github.io/react/blog/2017/09/26/react-v16.0.html Error boundaries are very nice, but this would mean dropping compat with React 15. I am not sure this is a good idea right now, maybe lets see how fast projects are upgrading? |
any update on this?. would love to upgrade my project's to use react16 to get the performance improvement |
I updated the PR to only allow React 16 final, and rebased against master. I have one test failure locally, but I also have it on
|
@isubastiCadmus I'm using Slate with React 16 without any issues. It's just that some examples are not compatible, but as far as I know it's only floating menu, and it might be compatible now with the new |
ee09b36
to
f27a41d
Compare
Changes are cosmetic: - React 16 no longer adds a trailing `;` to `style` attributes - React 16 outputs `0` and not `0px` for sizes in `style`
Thanks @renchap! |
* Allow React 16 in peerDeps and use it for dev * Make tests pass with React 16 Changes are cosmetic: - React 16 no longer adds a trailing `;` to `style` attributes - React 16 outputs `0` and not `0px` for sizes in `style`
As React 16 (facebook/react#10294) will be released in the coming days, here is a PR about it.
First, it changes the
peerDependencies
for all packages to allow React 16 (RC and up), see https://twitter.com/sophiebits/status/906661088472813568 for reference.Secondly, I changed the main
package.json
to use React 16. This makes the tests to run against React 16. The changes are only cosmetic:;
tostyle
attributes0
and not0px
for sizes instyle
I can change the PR to not bump tests and React version if you prefer to continue developing for React 15. Ideally tests should be ran on both React 15 and React 16 for some time, but I do not really know the best way to achieve this.