react-codemirror
react-codemirror copied to clipboard
simplescrollbar addon
I've been trying to get the simplescrollbar addon to work, but have not been successful. I am using V1.0
My imports look like the following:
import * as React from 'react';
import * as CodeMirror from 'react-codemirror';
import 'codemirror/addon/scroll/simplescrollbars.js';
import 'codemirror/addon/scroll/simplescrollbars.css';
My component looks like the following:
<CodeMirror
value={JSON.stringify(this.props.json, null, 2)}
options={{
readOnly: true,
lineNumbers: true,
scrollbarStyle: 'simple'
}}
/>
Is there something I am doing incorrectly?