CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
This is a simple example of a dynamically sized, animated collapsible component built with React. This component will expand to the height of its content, can be nested and reads CSS transitionEnd events to properly animate and adjust overflow.