JimmyLv / JimmyLv/reading

Passing Functions to Components - React

Open
#1,306 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
26
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## Passing Functions to Components - React

How do I pass an event handler (like onClick) to a component? Pass event handlers and other functions as props to child components: < button onClick = { this .…


November 25, 2017 at 10:18AM

via Instapaper https://reactjs.org/docs/faq-functions.html

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.