Animate between two react components

from blog Muffin Man, | ↗ original
Just a quick proof of concept I made for transitioning between two react components. It animates height (of the parent) and fades components into each other. See the Pen React transition between two components by Stanko (@stanko) on CodePen. In componentWillReceiveProps it checks if children prop has changed. When that happens, it will...