@uiw/react-codemirror 4.23.5 → 4.23.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -9
- package/dist/codemirror.js +313 -183
- package/dist/codemirror.min.js +1 -1
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -98,7 +98,7 @@ npm install @uiw/react-codemirror --save
|
|
|
98
98
|
|
|
99
99
|
[](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-slvju?fontsize=14&hidenavigation=1&theme=dark)
|
|
100
100
|
|
|
101
|
-
```jsx
|
|
101
|
+
```jsx
|
|
102
102
|
import React from 'react';
|
|
103
103
|
import CodeMirror from '@uiw/react-codemirror';
|
|
104
104
|
import { javascript } from '@codemirror/lang-javascript';
|
|
@@ -272,14 +272,7 @@ import { okaidia } from '@uiw/codemirror-theme-okaidia';
|
|
|
272
272
|
const extensions = [javascript({ jsx: true })];
|
|
273
273
|
|
|
274
274
|
export default function App() {
|
|
275
|
-
return (
|
|
276
|
-
<CodeMirror
|
|
277
|
-
value="console.log('hello world!');"
|
|
278
|
-
height="200px"
|
|
279
|
-
theme={okaidia}
|
|
280
|
-
extensions={extensions}
|
|
281
|
-
/>
|
|
282
|
-
);
|
|
275
|
+
return <CodeMirror value="console.log('hello world!');" height="200px" theme={okaidia} extensions={extensions} />;
|
|
283
276
|
}
|
|
284
277
|
```
|
|
285
278
|
|