Here is my Markdown Previewer: https://codepen.io/donnacamos88/full/BqLVyV/.
I’d appreciate any feedback I can get. I’m really struggling to get my head around React and any help in understanding it better would be greatly appreciated. Let me know what you think!
I noticed this but I couldn’t understand how. Do you have any suggestions as to what I’m doing wrong? I’ve been working on this for a week now and I can’t understand how if it’s functioning properly why the test isn’t passing.
Ok i figured this out.
you should render inside the #preview
element. you seem to render in a different div element.
(thanks to you i found out about showdown library, thx)
I tried placing two divs together:
<div id='preview' dangerouslySetInnerHTML={this.createMarkup()}
className='col-xs-10 col-xs-offset-1 full-height'/>
But the test still didn’t pass. Where am I supposed to render the #preview element?
I’m sorry. I’m very new to react and showdown. Showdown seemed simple until I added react on top of it.