No video

React JS Tutorial - 5 - Calling a function of other component

  Рет қаралды 18,071

Kode With Kamran

Kode With Kamran

Күн бұрын

In this video, we talk about calling a function of a component from its parent or child component.
Checkout Angular Tutorial: • Angular JS Tutorial
Checkout Node JS Tutorial: • Node JS Tutorial
Checkout Express JS Tutorial: • Express JS Tutorial
Instagram: / kode_with_kamran
Quora: kodewithkamran...
Facebook: / kodewithkamran
Medium: / shaikhkamran959

Пікірлер: 39
@heetsheth7307
@heetsheth7307 2 жыл бұрын
Thank you. It really helped me!!!.
@kodewithkamran
@kodewithkamran 2 жыл бұрын
Glad it helped!!! do share and subscribe!!
@maciejromiszewski6954
@maciejromiszewski6954 Жыл бұрын
Thank you.Thank you.Thank you.!!!
@kodewithkamran
@kodewithkamran Жыл бұрын
most welcome!! happy to know it helped
@kashmirtechtv2948
@kashmirtechtv2948 8 ай бұрын
The best
@kodewithkamran
@kodewithkamran Ай бұрын
Thank you
@aslizakku
@aslizakku 3 жыл бұрын
EK NUMBER VIDEO SIR
@israilgulzar7936
@israilgulzar7936 3 жыл бұрын
Mashaallah good.
@aminatmoldalieva6385
@aminatmoldalieva6385 2 жыл бұрын
I thought that I will not find such content. Thank you very muchhh. It is so much useful
@kodewithkamran
@kodewithkamran 2 жыл бұрын
Thank you!!! The comments like this keeps me motivated to make more videos, share and subscribe :)
@tarik9164
@tarik9164 2 жыл бұрын
Amazing! I was looking for a way to call a function of a component from it's parent, and this saved my day. thank you man
@kodewithkamran
@kodewithkamran 2 жыл бұрын
Glad it helped!!! do share and subscribe!!
@shebeeradimaly6125
@shebeeradimaly6125 Жыл бұрын
wow .. super boss
@kodewithkamran
@kodewithkamran Жыл бұрын
thanks man!!
@siku6206
@siku6206 2 жыл бұрын
You helped me a lot, thanks Kamran!
@kodewithkamran
@kodewithkamran 2 жыл бұрын
most welcome!
@shainesmajer6356
@shainesmajer6356 3 жыл бұрын
Thank you! learned a new trick in react
@themaaz23
@themaaz23 3 жыл бұрын
Very Helpful...
@muhammadjonnazarov146
@muhammadjonnazarov146 2 жыл бұрын
Wonderful tutorial, It really help me to solve my problem. Thanks a lot Kamran
@kodewithkamran
@kodewithkamran 2 жыл бұрын
Glad to hear that!!! You are most Welcome!!
@ashrafshaikh5175
@ashrafshaikh5175 2 жыл бұрын
Cool Kamran bhai
@ashekbuckman4656
@ashekbuckman4656 Жыл бұрын
Thank you!!!!
@kodewithkamran
@kodewithkamran Жыл бұрын
welcome!! do subscribe and share 😊
@fahadasad5782
@fahadasad5782 2 жыл бұрын
Thank you, helped alot :)
@kodewithkamran
@kodewithkamran 2 жыл бұрын
Glad it helped!!! Dont forget to share and subscribe!!
@YGaming18
@YGaming18 2 жыл бұрын
is it possible to call a functions of a child component in onther child component
@kodewithkamran
@kodewithkamran 2 жыл бұрын
yes use prop function from one child to call parent function and from that function call the other child function using ref… this is kind of hack… ideally you should use state management like redux to update state in any two diffraction components
@avertry9529
@avertry9529 2 жыл бұрын
I used this with a custom component, to change the button text from the parent, When I use more than one custom button the data I pass through only updates the last button in the dom, If I comment out the last the first works as expected. Would you know how to solve this? More Info: I made a custom Select Component, everything works except when useEffect triggers the text change for callChildFunction(), with setText useState passed in by a prop . If you get this thanks for any feedback.
@kodewithkamran
@kodewithkamran 2 жыл бұрын
do you want to update same value to both buttons?
@kodewithkamran
@kodewithkamran 2 жыл бұрын
you can share the code snippet on instagram id
@avertry9529
@avertry9529 2 жыл бұрын
@@kodewithkamran Thank you for answering, I'm new to react, and found an easier solution to update the text independently of any other button (same Component) just using useState and useEffect. So I must have been overthinking the solution by what I was originally trying to do.
@kodewithkamran
@kodewithkamran 2 жыл бұрын
great!!
@mohamedyoussef8835
@mohamedyoussef8835 2 жыл бұрын
Awesome video +++++++++++++++++++++++ thank you
@kodewithkamran
@kodewithkamran 2 жыл бұрын
glad it helped you!!! dont forget to share and subscribe!!! 😊
@namanrajput7686
@namanrajput7686 Жыл бұрын
how can we do this in sibling component??
@kodewithkamran
@kodewithkamran Жыл бұрын
You can pass via parent, or best is to use redux, kzbin.info/www/bejne/gKTZgWyleZmkrK8
@namanrajput7686
@namanrajput7686 Жыл бұрын
@@kodewithkamran in my company they are using zustand so can i do this in zustand
@kodewithkamran
@kodewithkamran Жыл бұрын
@@namanrajput7686 yes
@kodewithkamran
@kodewithkamran Жыл бұрын
@@namanrajput7686 any state manager will work
React JS Tutorial - 6 - React Router
7:36
Kode With Kamran
Рет қаралды 422
Why I avoid useEffect For API Calls and use React Query instead
17:45
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 3,9 МЛН
Pool Bed Prank By My Grandpa 😂 #funny
00:47
SKITS
Рет қаралды 20 МЛН
Whoa
01:00
Justin Flom
Рет қаралды 33 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 46 МЛН
Express crash course with postman testing
52:51
Hitesh Choudhary
Рет қаралды 25 М.
Goodbye, useEffect - David Khourshid
29:59
BeJS
Рет қаралды 498 М.
Call Child Component Function in React.js
6:26
Coding With Dawid
Рет қаралды 8 М.
Passing Data from Child to Parent Components in React
12:01
KnowledgeKeen
Рет қаралды 7 М.
You should Avoid these React useEffect Mistakes
15:53
CoderOne
Рет қаралды 41 М.
6 State Mistakes Every Junior React Developer Makes
15:53
Lama Dev
Рет қаралды 266 М.
This New Angular Release Is Wild
5:53
Theo - t3․gg
Рет қаралды 101 М.
Stop Doing this as a React Developer
12:27
CoderOne
Рет қаралды 162 М.
Learn useEffect In 13 Minutes
13:38
Web Dev Simplified
Рет қаралды 831 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 3,9 МЛН