Skip to content

Here's a way to update the parent component state through the child component in ReactJS by attaching an event in the child component and passing it as props to parent component and defining the handler of that click as per one's need in parent component

Notifications You must be signed in to change notification settings

ruhichandra14/POC-Update-Parent-Component-through-Child-Component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

POC-Update-Parent-Component-through-Child-Component

Here's a way to update the parent component state through the child component by attaching an event in the child component and passing it as props to parent component and defining the handler of that click as per one's need in parent component

About

Here's a way to update the parent component state through the child component in ReactJS by attaching an event in the child component and passing it as props to parent component and defining the handler of that click as per one's need in parent component

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published