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

myFunc = () => {} doesn't work (?) #564

Closed
kud opened this issue May 11, 2017 · 3 comments
Closed

myFunc = () => {} doesn't work (?) #564

kud opened this issue May 11, 2017 · 3 comments

Comments

@kud
Copy link
Contributor

kud commented May 11, 2017

Hey,

I've got a little problem with hot-loader (I've got the latest version)).

If I do this:

renderA() = {
  return (<div />)
}

render() {
  return (
    {this.renderA()}
  )
}

it refreshes correctly the render.

But if I do the trick to keep the right this:

renderA = () => {
  return (<div />)
}

render() {
  return (
    {this.renderA()}
  )
}

Nothing happens about the render.

Is it normal?

@kud
Copy link
Contributor Author

kud commented May 11, 2017

Related #242

@MaxInMoon
Copy link

@kud did you try this?

renderA = () => {
  return (<div />)
}

@gajus
Copy link

gajus commented May 24, 2017

Duplicate of #554

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

4 participants