From 727d6b855a77e090750070b985559550eb05fb9f Mon Sep 17 00:00:00 2001 From: Yeison Daza Date: Wed, 27 Jun 2018 18:22:10 -0500 Subject: [PATCH] change renderIntoDocument to render --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 56fc3256..b5f0641f 100644 --- a/README.md +++ b/README.md @@ -492,9 +492,9 @@ Convenience methods for firing DOM events. Check out for a full list as well as default `eventProperties`. ```javascript -import {renderIntoDocument, fireEvent} from 'react-testing-library' +import {render, fireEvent} from 'react-testing-library' -const {getElementByText} = renderIntoDocument(
) +const {getElementByText} = render() // similar to the above example // click will bubble for React to see it @@ -511,9 +511,9 @@ won't work like it does with `Simulate`. You need to change the element's `value` property, then use `fireEvent` to fire a `change` DOM event. ```javascript -import {renderIntoDocument, fireEvent} from 'react-testing-library' +import {render, fireEvent} from 'react-testing-library' -const {getByLabelText} = renderIntoDocument() +const {getByLabelText} = render() const comment = getByLabelText('Comment') comment.value = 'Great advice, I love your posts!'