joshwcomeau / react-flip-move

Effortless animation between DOM changes (eg. list reordering) using the FLIP technique.
http://joshwcomeau.github.io/react-flip-move/examples
MIT License
4.08k stars 259 forks source link

Now with React 16, is it possible to render children without the wrapper? #200

Closed MrSauceman closed 6 years ago

MrSauceman commented 6 years ago

In certain circumstances, wrapping the children with a div or anything else can cause issues with css. Currently I am using a css package that uses direct children selectors > and the flip move wrapper causes issues with this. The css is difficult to change because it's extensive and it's in its own package.

Is it possible to create an option to not wrap the children, now that React 16 allows rendering of arrays?

tobilen commented 6 years ago

@MrSauceman ask (for cool things) and ye shall receive: https://github.com/joshwcomeau/react-flip-move/pull/201