HoangHai-portliofio-projects / Projects / 6.TodoApp.fullStack.React+Springboot / react-fe / src / components / tasks.js
tasks.js
Raw
import Task from "./task";

const Tasks = ({ tasks, onDelete, onToggle }) => {
	return (
		<>
			{tasks.map((task, index) => (
				<Task 
				key={index} 
				task={task} 
				onDelete={onDelete} 
				onToggle = {onToggle}
				/>
			))}
		</>
	);
};

export default Tasks;