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

how to callback listener to parent #125

Open
tuannguyenhoangit opened this issue Feb 1, 2018 · 0 comments
Open

how to callback listener to parent #125

tuannguyenhoangit opened this issue Feb 1, 2018 · 0 comments
Labels

Comments

@tuannguyenhoangit
Copy link

tuannguyenhoangit commented Feb 1, 2018

 var indents = [];
        for (var i = 0; i < 10; i++) {
            indents.push(<li className='indent' key={i}>
                <NutrientCard
                    deckName="Breakfast deck"
                    data={data}
                    onSearchClick={() => {
                        console.log("on search click")
                    }} />
            </li>);

I want to listen event in <li> tag, or <NutrientCard> component so far when card throwin, throwout.
How to do that, please help.

@gajus gajus added the question label Feb 14, 2018
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