====== Props and State ====== === Props === Props (short for properties) are read-only attributes passed from parent to child components. function Welcome(props) { return

Hello, {props.name}!

; }
=== State === State is used for dynamic and interactive components. import { useState } from 'react'; function Counter() { const [count, setCount] = useState(0); return (

Count: {count}

); } export default Counter;