Skip to content

neranjanaprasad/it3133-day7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Practical Day 07: Parent-Child Communication

This React project demonstrates how to pass data from a parent component to a child component and how to update the parent component's state from the child component.

How it works

  • The parent component App has a state object with a property childName and the function receiveName to call the set state method.
  • The parent component App passes the function receiveName to the child component ChildComp.
  • ChildComp sets the childName property by calling the receiveName function.

Output

Output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published