--- title: Pass Props to a Stateless Functional Component --- # Pass Props to a Stateless Functional Component --- ## Hints ### Hint 1 Define a prop named date in the Calendar component as follows: ```jsx ``` ### Hint 2 The syntax prop.propName is used to render a prop. --- ## Solutions
Solution 1 (Click to Show/Hide) Assign a prop named date in the Calendar component as follows and render it in the Calendar component, like: ```jsx const CurrentDate = (props) => { return (

The current date is: {props.date}

); }; class Calendar extends React.Component { constructor(props) { super(props); } render() { return (

What date is it?

); } }; ```