React - Pass an Array as Props

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

const List = props => {
  return <p> {props.tasks.join(', ')}</p>;

class ToDo extends React.Component {
  constructor(props) {
  render() {
    return (
        <h1>To Do Lists</h1>
        <List tasks={["Walk", "Bake"]} />

        <List tasks={["Study", "Codes", "Easf"]} />

Your browser information:

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

Challenge: React - Pass an Array as Props

Link to the challenge:

@qaviansari777 welcome to the community! :wave:

How can we help you?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.