Skip to content

[Beta] Example code in escape hatched section - Separating events from Effects not working #5538

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

Closed
DawnGate opened this issue Feb 3, 2023 · 0 comments

Comments

@DawnGate
Copy link
Contributor

DawnGate commented Feb 3, 2023

Today, I'm reading in section of escape hatches in beta doc. And I see some example not working.

I think it about code:
import { experimental_useEvent as useEvent } from 'react';

correctly is:
import { experimental_useEffectEvent as useEvent } from 'react';

Screenshot 2023-02-03 092054

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

No branches or pull requests

1 participant