Skip to content

Commit a9cfa9d

Browse files
committed
doc: update README.md
1 parent 36d8b67 commit a9cfa9d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ const code = 'const a = 0;';
9898

9999
## Props Events
100100

101-
[codemirror events](https://codemirror.net/doc/manual.html#events)
101+
An editor instance fires the following [codemirror events](https://codemirror.net/doc/manual.html#events). The instance argument always refers to the editor itself.
102+
103+
```jsx
104+
<CodeMirror value="..." onChange={() => { }} />
105+
```
102106

103107
```tsx
104108
import React from 'react';

0 commit comments

Comments
 (0)