Skip to content

Commit a0db3e7

Browse files
author
Brian Vaughn
committed
Replaced inaccurate comments
1 parent ee909e5 commit a0db3e7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/blog/2019-02-05-react-v16.8.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ afterEach(() => {
7373
});
7474
7575
it('can render and update a counter', () => {
76-
// Test first render and componentDidMount
76+
// Test first render and effect
7777
act(() => {
7878
ReactDOM.render(<Counter />, container);
7979
});
@@ -82,7 +82,7 @@ it('can render and update a counter', () => {
8282
expect(label.textContent).toBe('You clicked 0 times');
8383
expect(document.title).toBe('You clicked 0 times');
8484
85-
// Test second render and componentDidUpdate
85+
// Test second render and effect
8686
act(() => {
8787
button.dispatchEvent(new MouseEvent('click', {bubbles: true}));
8888
});

content/docs/hooks-faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ afterEach(() => {
153153
});
154154
155155
it('can render and update a counter', () => {
156-
// Test first render and componentDidMount
156+
// Test first render and effect
157157
act(() => {
158158
ReactDOM.render(<Counter />, container);
159159
});
@@ -162,7 +162,7 @@ it('can render and update a counter', () => {
162162
expect(label.textContent).toBe('You clicked 0 times');
163163
expect(document.title).toBe('You clicked 0 times');
164164
165-
// Test second render and componentDidUpdate
165+
// Test second render and effect
166166
act(() => {
167167
button.dispatchEvent(new MouseEvent('click', {bubbles: true}));
168168
});

0 commit comments

Comments
 (0)