Basically, Props are arguments passed into React components. They are just like a functional arguments in JavaScript and attributes in HTML.
Word Props means the properties of a component
- A component
Textwith attributetext
<Text text="World!"/>
-
TextComponent
function Text(props){
return(
<h1>Good, {props.text}</h1>
)
}
Top comments (0)