Skip to content

Commit 2a916c0

Browse files
committedOct 4, 2023
type(example): fix nextjs example type error.
1 parent 40655ff commit 2a916c0

File tree

1 file changed

+3
-3
lines changed
  • example/nextjs/src/app/merg/_editor

1 file changed

+3
-3
lines changed
 

‎example/nextjs/src/app/merg/_editor/Com.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client';
22

3-
import { Fragment, useRef, useState } from 'react';
3+
import { useRef, useState } from 'react';
44
import CodeMirrorMerge, { CodeMirrorMergeProps } from 'react-codemirror-merge';
55
import { langs } from '@uiw/codemirror-extensions-langs';
66
import { originalCode, modifiedCode } from './code';
@@ -26,7 +26,7 @@ export const MergeExample = () => {
2626
setOriginalValue(code);
2727
};
2828
return (
29-
<Fragment>
29+
<div>
3030
<button onClick={click}>Change Original Value {random.current}</button>
3131
<CodeMirrorMerge
3232
orientation={orientation}
@@ -100,6 +100,6 @@ export const MergeExample = () => {
100100
onChange={(evn) => setCollapseUnchanged(evn.target.checked ? {} : undefined)}
101101
/>
102102
</label>
103-
</Fragment>
103+
</div>
104104
);
105105
};

0 commit comments

Comments
 (0)
Please sign in to comment.