Markdown previewer: deployed first react app

Markdown previewer: deployed first react app
0

#1

Hey all,
I’ve finished my markdown previewer, I built it with create-react-app. Please have a look at it and let me know what you think. The project is here: https://ozmos.github.io/React-markdown-previewer/, source code is here: https://github.com/ozmos/React-markdown-previewer/tree/master/src

I found I had to use dangerouslySetInnerHTML to get it to work. If there is a better way to make the app render the markdown please let me know in comments.

I used inline styles with a separate file to store variables. Is this a fairly orthodox way to style react apps? I like the idea of having the style object in the same file as the component so I don’t have to switch back and forth but having a common variables object which can be imported so I can make broad changes if I want to. Give me your thoughts on this as I’m very new to all things React.