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
Text
with attributetext
<Text text="World!"/>
-
Text
Component
function Text(props){
return(
<h1>Good, {props.text}</h1>
)
}
Top comments (0)