Khan / react-components

khan.github.io/react-components/
MIT License
1.01k stars 99 forks source link

Added additional functionality and hooks to TimeoutTransitionGroup #33

Closed tcasparro closed 9 years ago

tcasparro commented 9 years ago
sophiebits commented 9 years ago

I'd recommend just using the lower-level ReactTransitionGroup API and creating custom child wrappers for your use case – TimeoutTransitionGroup (and its inspiration, CSSTransitionGroup) is specifically designed for adding and removing CSS classes due to a transition and if you want more complicated logic you can use the lower-level API instead. How does that sound?

tcasparro commented 9 years ago

No worries, if it doesn't fit what you're looking for. Just made a few mods and wanted to share back. Cheers.

sophiebits commented 9 years ago

Not a problem, thanks for sending this in anyway!