Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS not applying to ReactMde

I'm building a notes app but I run into a problem, I installed react-mde, react-split, and showdown as dependencies using npm install but the editor's CSS styling is missing, what could be the problem?

The source code: https://github.com/arturfriedrich/notes-app

enter image description here

like image 356
artur Avatar asked Jun 10 '26 21:06

artur


1 Answers

This is from the Scrimba React course, right?. I was having the exact same problem. Here's how I solved it. Just put this line of code in your App after all your imports:

import "react-mde/lib/styles/css/react-mde-all.css";

See also the React MDE documenation.

like image 68
Fernando Franco Félix Avatar answered Jun 12 '26 10:06

Fernando Franco Félix



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!