Browse Source

Replaced inaccurate comments

main
Brian Vaughn 6 years ago
parent
commit
a0db3e7f17
  1. 4
      content/blog/2019-02-05-react-v16.8.0.md
  2. 4
      content/docs/hooks-faq.md

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

@ -73,7 +73,7 @@ afterEach(() => {
});
it('can render and update a counter', () => {
// Test first render and componentDidMount
// Test first render and effect
act(() => {
ReactDOM.render(<Counter />, container);
});
@ -82,7 +82,7 @@ it('can render and update a counter', () => {
expect(label.textContent).toBe('You clicked 0 times');
expect(document.title).toBe('You clicked 0 times');
// Test second render and componentDidUpdate
// Test second render and effect
act(() => {
button.dispatchEvent(new MouseEvent('click', {bubbles: true}));
});

4
content/docs/hooks-faq.md

@ -153,7 +153,7 @@ afterEach(() => {
});
it('can render and update a counter', () => {
// Test first render and componentDidMount
// Test first render and effect
act(() => {
ReactDOM.render(<Counter />, container);
});
@ -162,7 +162,7 @@ it('can render and update a counter', () => {
expect(label.textContent).toBe('You clicked 0 times');
expect(document.title).toBe('You clicked 0 times');
// Test second render and componentDidUpdate
// Test second render and effect
act(() => {
button.dispatchEvent(new MouseEvent('click', {bubbles: true}));
});

Loading…
Cancel
Save