çããããã«ã¡ã¯ãå æ¥å ¬éãã以ä¸ã®è¨äºã¯å¤ãã®æ¹ã«ã覧ããã ããããã¨ããããã¾ãã ãã®è¨äºã«å¯¾ãã¦å¤ãè¦ãããåé¿ã®ã²ã¨ã¤ã¯ãã³ã³ãã¼ãã³ãå ã« use(fetchNote(id)) ã¨ããéåæå¦çãè¡ãã³ã¼ããå«ã¾ãã¦ãããã¨ã«å¯¾ããéåæã§ãã function Note({id, shouldIncludeAuthor}) { // âââââ const note = use(fetchNote(id)); let byline = null; if (shouldIncludeAuthor) { const author = use(fetchNoteAuthor(note.authorId)); byline = <h2>{author.displayName}</h2>; } return ( <div> <h1>{note.title}</h1> {byline}
{{#tags}}- {{label}}
{{/tags}}