Skip to content

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

@DawnGate

Description

@DawnGate

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions