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

Translate Passing Functions to Components FAQ #130

Merged
merged 2 commits into from Oct 19, 2019

Conversation

GasimGasimzada
Copy link
Collaborator

@GasimGasimzada GasimGasimzada commented Oct 18, 2019

  • How do I pass an Event Handler to a Component?
  • How can I bind a function to a component instance?
    • Bind in Constructor
    • Class Properties
    • Bind in Render
    • Arrow Functions in Render
  • Is it okay to use Arrow Functions in Render?
  • Why is Binding necessary?
  • Why is my function being called every time there is a render?
  • How can I send parameters to event handlers or callbacks?
    • Example: Passing Arrow functions to event Handlers
    • Example: Passing parameters to data attributes
  • How do I prevent a function from being called too quickly?
    • Throttle
    • Debounce
    • requestAnimationFrame throttling
    • Testing your rate limiting

https://deploy-preview-130--az-reactjs.netlify.com/docs/faq-functions.html

@netlify
Copy link

netlify bot commented Oct 18, 2019

Deploy preview for az-reactjs ready!

Built with commit 3d775a3

https://deploy-preview-130--az-reactjs.netlify.com

@GasimGasimzada GasimGasimzada merged commit 89ddf57 into master Oct 19, 2019
@GasimGasimzada GasimGasimzada deleted the translate-faq-passing-functions-to-components branch October 19, 2019 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting review +1 new page Translate a new page
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants