import React from "react";
import { ListGroup, ListGroupItem } from "reactstrap";
import { FaCheckDouble } from "react-icons/fa";
const Todo =({todos}) => {
return(
<ListGroup>
<ListGroupItem>
{
todos.map((todo) => {
const {id, title, body, userId} = todo
<h4>{title}</h4> // error starting from here
<h6>{body}</h6>
})
}
</ListGroupItem>
</ListGroup>
)
}