SkillSeevaSkillSeeva
HomeResourcesScheduleRoadmapTeam
Back to Categories
Current Path
React
ComponentsHooks (useState, useEffect)Props & State
Jump to topic:
ComponentsHooks (useState, useEffect)Props & State

Props & State

Props are arguments passed into React components. State is data managed within the component.
javascript
// Parent passes prop
<Child message="Hello" />

// Child receives prop
function Child(props) {
  return <p>{props.message}</p>;
}
3 / 3