MCPcopy Create free account
hub / github.com/codemistic/Web-Development / Note

Function Note

Google Keep Clone/src/components/Note.jsx:5–19  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

3
4import DeleteIcon from "@material-ui/icons/Delete";
5function Note(props) {
6 function handleClick() {
7 props.onDelete(props.id);
8 }
9
10 return (
11 <div className="note">
12 <h1>{props.title}</h1>
13 <p>{props.content}</p>
14 <Fab onClick={handleClick}>
15 <DeleteIcon />
16 </Fab>
17 </div>
18 );
19}
20
21export default Note;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected