Skip to content

Commit 2269cf4

Browse files
authored
Tweak
1 parent 692ca14 commit 2269cf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/addons-test-utils.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,15 @@ Simulate an event dispatch on a DOM node with optional `eventData` event data.
6666
**Clicking an element**
6767

6868
```javascript
69-
// <button ref={(btn) => this.button = btn}>...<button>
69+
// <button ref={(node) => this.button = node}>...</button>
7070
const node = this.button;
7171
ReactTestUtils.Simulate.click(node);
7272
```
7373

7474
**Changing the value of an input field and then pressing ENTER.**
7575

7676
```javascript
77-
// <input ref={(input) => this.textInput = input} />
77+
// <input ref={(node) => this.textInput = node} />
7878
const node = this.textInput;
7979
node.value = 'giraffe';
8080
ReactTestUtils.Simulate.change(node);

0 commit comments

Comments
 (0)