-
Notifications
You must be signed in to change notification settings - Fork 27k
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
render arrow functions breaking in 2.0.0-beta.17 #828
Comments
Something definitely wrong here. import React, { Component } from 'react'
export default class App extends Component {
render() {
return (<div>Something else</div>)
}
render = () => <div>Hi</div> //notice the arrow function
} |
@nkzawa this is related to our client side |
It also seems like HMR is also not working for class properties. @johnlindquist could you check that with |
@arunoda
To:
And the page updated without refreshing in 1.2.3. So it looks good to me. |
@johnlindquist Okay. I'll look into that too. |
btw just curious why you'd like to do this since |
@nkzawa curious as to what the specific performance implications are. Would you be able explain or point to a resource so I can understand? Thanks! |
@avanslaars because it's transpiled like the following: function Component () {
this.render = function () {}
} |
@nkzawa Thanks! |
The code below
Errors:
The text was updated successfully, but these errors were encountered: