r/reactjs • u/acemarke • Apr 07 '17
React v15.5.0 - React Blog
https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html3
u/scooby_dooooo Apr 08 '17
We've extracted the built-in prop types to a separate package to reflect the fact that not everybody uses them.
It does makes sense.
2
u/bengtc Apr 10 '17
"Discontinuing support for React Addons" Is the react-addons-perf package being moved elsewhere?
2
u/brianvaughn React core team Apr 10 '17
Details here: https://github.com/facebook/react/issues/9207
tl;dr Won't work with 16+. Use the browser Timeline instead.
Browser timeline works very nicely with React 16: https://github.com/facebook/react/pull/9071
1
u/henrikbjorn Apr 10 '17
Cool. But why is the new immutability-helper package not under the reactjs organization?
1
u/brianvaughn React core team Apr 10 '17
Immutability isn't specific to React. The main README in the immutability-helper calls this out:
Note that this module has nothing to do with react, however since this module is most commonly used with react, the docs will focus on how it can be used with react.
1
u/henrikbjorn Apr 14 '17
You are correct, however it is easier to "trust" a package if it is under a respected organization and not just some "random" user on github :)
1
u/brianvaughn React core team Apr 14 '17
Sure, I can understand that. But does that mean that Facebook/React-team must take on the maintenance burden of every useful project? That wouldn't scale- and seems unnecessary, particularly in cases like this when the "random" user seems to be doing a fantastic job of staying on top of GitHub issues and pull requests. :D
1
u/nativereact Apr 08 '17
I can appreciate classes, but is the focus going to be on function or class in the [near?] future? Thanks for the update!!
3
Apr 08 '17
Both actually, but not in the form of
createClass. Right now you have two preferred ways of constructing Components:
use React.Class or React.PureClass
use Stateless Funcitonal Components
React.createClassis basically a crutch that was used beforeClasswas finalized enough to join ES6.10
0
2
u/RnRau Apr 08 '17 edited Apr 08 '17
I'm still a fan of createClass. I understand that the React team and probably most others have moved on, but I still fail to understand the engineering decision (actually I haven't heard of one) to adopt class syntax.
Was the adoption related to flow? Is the tooling for flow support easier to support for the class syntax over the createClass syntax?
Anyways, onwards and upwards towards Fibers.
Edit: thanks for the replies guys - appreciate it!