Skip to content

Make clickHandler registration more clear #70

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

Merged
merged 1 commit into from
Mar 6, 2016

Conversation

aweary
Copy link
Contributor

@aweary aweary commented Mar 6, 2016

  • Declares a hasOnClick variable to make the ternary expression returning the clickHandler value shorter and more clear
  • Creates a noop function outside the component function so that the component doesn't have to create a new function every time new props are passed.

Declares a `hasOnClick` variable to make the ternary expression returning the `clickHandler` value shorter and more clear
* Creates a `noop` function outside the component function so that the component doesn't have to create a new function every time new props are passed.
@facebook-github-bot
Copy link

By analyzing the blame information on this pull request, we identified @drew-gross to be a potential reviewer.

drew-gross added a commit that referenced this pull request Mar 6, 2016
Make clickHandler registration more clear
@drew-gross drew-gross merged commit 02a7a67 into parse-community:master Mar 6, 2016
douglasmuraoka pushed a commit that referenced this pull request Nov 29, 2019
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

Successfully merging this pull request may close these issues.

3 participants