Codemirror + React + Webpack = issue

Hello!

I’m trying to make Codemirror works in an empty React and Webpack project but I have some issues.

  • The editor appears without errors but it hasn’t any style and some strange characters appears on top of the default value.
  • At stackoverflow someone said that webpack needs to import some css (import ‘codemirror/lib/codemirror.css’; import ‘codemirror/theme/monokai.css’:wink: but with that code I can’t see any change.

Any ideas?
Thanks in advance.