React - Pass Props to a Stateless Functional Component

Tell us what’s happening:

Can please guide me I keep getting this message.

  1. The date prop should be generated by calling Date()
    Failed:
  2. The CurrentDate component should render the value from the date prop in the p tag.
    Number 5 how do I generate Date with the prop. I have tried

Your code so far

const CurrentDate = (props) => {
  return (
    <div>
      { /* Change code below this line */ }
      <p>The current date is: {props.date = Date()} </p>
      <Date />
      { /* Change code above this line */ }
    </div>
  );
};

class Calendar extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div>
        <h3>What date is it?</h3>
        { /* Change code below this line */ }
        <CurrentDate  />
        { /* Change code above this line */ }
      </div>
    );
  }
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36

Challenge Information:

React - Pass Props to a Stateless Functional Component

worked for 5 now Im stuck on 6
The CurrentDate component should render the value from the date prop in the p tag. I tried {propsx.date} by itself it shows the time is that not rendering the components of the prop.date value

Hi @mike0844

So the forum can assist, please post your updated code.

Happy coding