@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 CHANGED
@@ -98,7 +98,7 @@ npm install @uiw/react-codemirror --save
98
98
 
99
99
  [![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-slvju?fontsize=14&hidenavigation=1&theme=dark)
100
100
 
101
- ```jsx mdx:preview
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