ReactJS Call Parent Function from Child Component

preview_player
Показать описание
ReactJS call a parent function from a child component using props.
Рекомендации по теме
Комментарии
Автор

My 6 year old was cracking up at the little Darwin in the corner talking.

Human_Evolution-
Автор

The best explanation I've seen so far. that I've seen. I've seen other explanations used on forms and I've kinda understood the concept behind it but it has never fully clicked in my head until now :D

ThatSneakyBeaver
Автор

Perfect! Exactly what I was looking for and straight forward instructions! Thanks for tihs.

selfdirectx
Автор

how do we do it when we add parameters from the child tho, like a unique string input from a child?

jonjon
Автор

You are calling parent component function from child component, not passing the data, when i am tryinh to pass data from child comp. "too many re-render is happening
"

kushagraanand
Автор

how to get the return value of the parent function back to child component? Please help

tharindahashen
Автор

Can you bother a little to make a vedio on how to send refs from child to parent, it will be appreciated a lot .

saurabrakshit
Автор

This is the perfect video which help me for project thanks ❤

nikkisharma
Автор

I need the button to stay in the parent component so I have no idea what to do

michaelrooze
Автор

sir,
how to do the same thing using string instead of integer number

shakeelhaider
Автор

this is from parent to child not child to parent

frizm
Автор

this didnt work, it returned expected an assignment or function call and instead saw an expression. To fix it, added () such as handleAdd to handleAdd() in your Child example

ridhwaans
Автор

thank you i'cant find this since 3 day

diyorqarshiboyev