+ {content}
+ {dueDate}
+
+
+ ;
}
const Wrapper = styled.div`
- font-size: 18px;
- border: solid 1px;
+ width: 100%;
+ display: flex;
+ flex-direction: row;
+ -webkit-box-pack: justify;
+ justify-content: space-between;
+ align-items: flex-start;
+ margin-bottom: 3rem;
+ padding: 1rem 2rem;
+ border-width: 1px;
+ border-style: solid;
+ border-color: black;
+ border-image: initial;
`;
+
+const areEqual = (prevProps, nextProps) => {
+ return prevProps.id === nextProps.id;
+}
+
+export default React.memo(TodoItem, areEqual);
\ No newline at end of file
diff --git a/components/todo-list.js b/components/todo-list.js
index 68fded1..fc87d77 100644
--- a/components/todo-list.js
+++ b/components/todo-list.js
@@ -3,17 +3,17 @@ import styled from "styled-components";
import TodoItem from "./todo-item";
-export default function TodoList() {
- return (
-