Markdown Previewer issue with user stories ← My code

I need help with the following two issues with my code:

  1. When I enter text into the #editor element, the #preview element is updated as I type to display the content of the textarea
  2. When I enter GitHub flavored markdown into the #editor element, the text is rendered as HTML in the #preview element as I type (Hint: You don’t need to parse Markdown yourself - you can import the Marked library for this: marked - Libraries - cdnjs - The #1 free and open source CDN built to make life easier for developers)

1. You should leave DOM manipulation to React.
2. setState is asynchronous, but you can’t await it, you should use callback.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.