Skip to content

Commit

Permalink
doc: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 18, 2021
1 parent 36d8b67 commit a9cfa9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ const code = 'const a = 0;';

## Props Events

[codemirror events](https://codemirror.net/doc/manual.html#events)
An editor instance fires the following [codemirror events](https://codemirror.net/doc/manual.html#events). The instance argument always refers to the editor itself.

```jsx
<CodeMirror value="..." onChange={() => { }} />
```

```tsx
import React from 'react';
Expand Down

0 comments on commit a9cfa9d

Please sign in to comment.