Skip to content

Docs: Typo in documentation to use with React hooks. #4637

@Swastikyadav

Description

@Swastikyadav

Typo in documentation to use with React hooks.
How to use with React hooks

The above documentation code snippet have a typo.

In the snippet sendPing function socket emits to "ping", but in the useEffect it is listening to "pong" instead of "ping".

Attachment for reference:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationto triageWaiting to be triaged by a member of the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions