Skip to content

Hook.useTransition with more events #76

@leolorenzoluis

Description

@leolorenzoluis

I'm not sure if it's missing, but would it be useful to add additional event handlers on the Hook.useTransition

Currently it uses OnEntered and OnLeft.

Adding such as OnEntered, OnEntering... etc

Also, would it be more useful if the OnLeft was renamed to Exit instead to be on on par with other naming conventions by other frameworks?

What I'm trying to do is assign TailWindCss on different transitions. I'm not sure if there's a better way to do it

Maybe something like https://github.com/reactjs/react-transition-group/blob/2989b5b87b4b4d1001f21c8efa503049ffb4fe8d/stories/Transition.js#L13

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