Skip to content

Exited state on component mount #366

Open
@kesopeso

Description

@kesopeso

So I have a component, that shouldn't be displayed when mounted:
<CSSTransition in={false} ... is the state when component mounts.

transitions i want to use:
enter: 'class-that-adds-transition class-that-sets-opacity-to-zero'
enterActive: 'class-that-sets-opacity-to-one'
exit: 'class-that-adds-transition class-that-sets-opacity-to-one'
exitActive: 'class-that-sets-opacity-to-zero'
exitDone: 'class-that-hides-component'

Is there a way to apply "exitedDone" class on that component when it mounts? Without any transitions etc... something like appear={true}, but for components that shouldn't be rendered if in=false

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions