You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed every steps and able to render as per requirement of test case but test case ( The List component should render the value from the tasks prop in the p tag. ) failed, Please let me know if its a bug or there is some probelem in my code,
Here is my code
const List= (props) => {
{ /* change code below this line */ }
return <p>{props.tasks.join(',')}</p>
{ /* change code above this line */ }
};
class ToDo extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<h1>To Do Lists</h1>
<h2>Today</h2>
{ /* change code below this line */ }
<List tasks={["Hello","Hi","Hihih"]}/>
<h2>Tomorrow</h2>
<List tasks={["Hey","There","Yo"]}/>
{ /* change code above this line */ }
</div>
);
}
}
Cheers to FreeCodeCamp <3
The text was updated successfully, but these errors were encountered:
Please try and post something like this on the FCC forums and confirm it is a actual issue before here.
--> https://forum.freecodecamp.org/
Also close the issue.
Hi,
I was facing one problem while solving the exercise ( pass-an-array-as-props ) of React here is the link, https://learn.freecodecamp.org/front-end-libraries/react/pass-an-array-as-props
I followed every steps and able to render as per requirement of test case but test case ( The List component should render the value from the tasks prop in the p tag. ) failed, Please let me know if its a bug or there is some probelem in my code,
Here is my code
Cheers to FreeCodeCamp <3
The text was updated successfully, but these errors were encountered: