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

JSX Can't find class method by name #60

Closed
max-mykhailenko opened this issue Feb 6, 2018 · 4 comments
Closed

JSX Can't find class method by name #60

max-mykhailenko opened this issue Feb 6, 2018 · 4 comments
Labels

Comments

@max-mykhailenko
Copy link

screen shot 2018-02-06 at 12 55 38 pm

@borela
Copy link
Owner

borela commented Feb 6, 2018

Do you have an example where the bug happens? I tried something like:

class Test extends React.Component {
  a = 123
  
  test() {
  }
  
  test2() {
  }
  
  render() {
  }
}

And it is showing the render method. Which version do you have installed?

@max-mykhailenko
Copy link
Author

max-mykhailenko commented Feb 6, 2018

When some methods placed right into this

class CreateOrderScreen extends React.Component<Props> {
  onSubmit = (e) => {
      e.preventDefault();
    }
}

@max-mykhailenko
Copy link
Author

Sorry, my bad. Hidden syntax error broke it

@borela
Copy link
Owner

borela commented Feb 6, 2018

No problem :D

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

No branches or pull requests

2 participants