We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
react@experimental
1 parent 590bc18 commit aba5740Copy full SHA for aba5740
src/__tests__/rerender.js
@@ -32,12 +32,13 @@ describe('rerender API', () => {
32
document.body.appendChild(container)
33
34
const firstValue = 'hello'
35
- initialInputElement.value = firstValue
36
-
37
- const {rerender} = render(<input value="" onChange={() => null} />, {
38
- container,
39
- hydrate: true,
40
- })
+ const {rerender} = render(
+ <input value={firstValue} onChange={() => null} />,
+ {
+ container,
+ hydrate: true,
+ },
41
+ )
42
43
expect(initialInputElement).toHaveValue(firstValue)
44
0 commit comments