Skip to content

Update example-react-transition-group.mdx #1066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2022

Conversation

LuckyMona
Copy link
Contributor

No description provided.

@@ -95,7 +95,7 @@ test('you can mock things with jest.mock', () => {
)
fireEvent.click(getByText(/toggle/i))
expect(CSSTransition).toHaveBeenCalledWith(
{in: true, ...defaultProps},
{in: false, ...defaultProps},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this snippet, could you also import add useState to the imports please?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I missed the notification

@timdeschryver timdeschryver merged commit d4c5001 into testing-library:main Jun 4, 2022
@timdeschryver
Copy link
Member

@all-contributors please add @LuckyMona for docs

@allcontributors
Copy link
Contributor

@timdeschryver

I've put up a pull request to add @LuckyMona! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants