How can I add a textarea element in Markdown? #1493
Answered
by
remcohaszing
prathmesh796
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
remcohaszing
Jul 8, 2026
Replies: 1 comment 3 replies
-
|
Do you mean something like this? function MarkdownEditor() {
const [noteContent, setNoteContent] = useState('')
return (
<>
<Markdown>{noteContent}</Markdown>
<textarea
className="min-h-screen h-auto w-full resize-none border-none bg-transparent focus:outline-none"
value={noteContent}
onChange={(e) => setNoteContent(e.target.value)}
/>
</>
)
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

In that case you should look for a markdown WYSIWYG editor.
react-markdownis a markdown renderer.