Home
Basics
Introduction Setting up environment First Component JSX Component lifecycle Class Based Components Function Based Components Props State Hooks useState hook useEffect hook Events Server requests CSS in React Router third party JavaScriptAdvanced
useContext hook useRef hook useReducer hook Memo useCallback hook Custom Hooks React and ReduxMiscellaneous
React Third Party Components Html templates in React React Interview QnAProps in React
Props are objects passed to child component from parent component. Based on values of Props and state, React renders the component. In below example, we have passed color prop to Car component and then Car Component is accessing the prop value to render UI.
<Car color='red'/>
export default function Car = (props)=>{
return (
<>
Car color is {props.color}
</>
}
}
Web development and Automation testing
solutions delivered!!