Last active
October 23, 2022 16:43
-
-
Save dioxmio/fee7f4d59b9bf9112d4a75fc3fcb43d3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
async function Note({id, isEditing}) { | |
const note = await db.posts.get(id); | |
return ( | |
<div> | |
<h1>{note.title}</h1> | |
<section>{note.body}</section> | |
{isEditing ? <NoteEditor note={note} /> : null} | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment