Browse Source

fix test renderer's act() example (#2811)

`<renderer>.update()` doesn't return anything
main
Sunil Pai 5 years ago
committed by GitHub
parent
commit
c9b76e9795
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/reference-test-renderer.md

2
content/docs/reference-test-renderer.md

@ -128,7 +128,7 @@ expect(root.toJSON()).toMatchSnapshot();
// update with some different props
act(() => {
root = root.update(<App value={2}/>);
root.update(<App value={2}/>);
})
// make assertions on root

Loading…
Cancel
Save