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

Upgrade to React 0.13.x #53

Open
basham opened this issue Mar 12, 2015 · 2 comments
Open

Upgrade to React 0.13.x #53

basham opened this issue Mar 12, 2015 · 2 comments

Comments

@basham
Copy link
Member

basham commented Mar 12, 2015

Released on March 10, 2015.
http://facebook.github.io/react/blog/2015/03/10/react-v0.13.html

Should be able to replace react-with-addons.x.js with just react.x.min.js, since the only addon being used was for class name manipulations, which is now depreciated. Replace React.addons.classSet with classnames npm package.

@basham
Copy link
Member Author

basham commented Mar 12, 2015

Notable things:

Breaking Changes

  • Static methods (defined in statics) are no longer autobound to the component class
  • React.addons.classSet is now deprecated. This functionality can be replaced with several freely available modules. classnames is one such module.

New Features

  • Support for using ES6 classes to build React components; see the v0.13.0 beta 1 notes for details.
  • Added new top-level API React.findDOMNode(component), which should be used in place of component.getDOMNode(). The base class for ES6-based components will not have getDOMNode. This change will enable some more patterns moving forward.

@basham
Copy link
Member Author

basham commented Mar 12, 2015

Probably shouldn't switch to ES6 syntax, yet, until there's a well supported replacement for mixins. Too early to know what direction that will be. Mixins are used extensively for reflux and react-router.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant