Closed Nantris closed 3 years ago
Yeah sure thing! 😄
Interesting, looks like React Transition Group is doing it here. Feel free to add a PR and I'll review and merge it. 😉
Belated update, this is now in for the next release 4.1.0
and the interface matches that of React Transition Group, just set a component
prop with what you might want (g
, section
, etc.) and it'll use that component type to wrap each child being animated . I'll be closing this issue, but let me know if you want to keep it open.
For example, using an
<li />
instead of a<div />
. React Transition Group handles this via thecomponent
property. React Transition Group allows settingnull
but I assume that's impossible in this case. It would still be great to be able to render other elements though.@alaingalvan would you be open to a PR for this?