Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing React Fragment to enclose list of tasks #223

Open
ayushvj08 opened this issue Nov 13, 2023 · 1 comment
Open

Missing React Fragment to enclose list of tasks #223

ayushvj08 opened this issue Nov 13, 2023 · 1 comment

Comments

@ayushvj08
Copy link

Mentions #222

Changes required in this line

return this.state.tasks.map((task, idx) => <Task key={idx} title={task.title} />);

To be changed to this

return (
      <>
        {this.state.tasks.map((task, idx) => (
          <Task key={idx} title={task.title} />
        ))}
      </>
    );
@reenas reenas closed this as completed Dec 21, 2023
@reenas reenas reopened this Dec 21, 2023
@reenas
Copy link
Contributor

reenas commented Dec 21, 2023

@developedbysaad Please check this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants