Created
December 28, 2019 21:06
-
-
Save shanebdavis/31b012de252b1765f98d17226f437764 to your computer and use it in GitHub Desktop.
modular-redux-tutorial component ToDoItem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { deleteItem } from "../redux/list"; | |
export const ToDoItem = ({ item }) => ( | |
<li> | |
{item.text + " "} | |
<button onClick={() => deleteItem(item)}>-</button> | |
</li> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment