Skip to main content
100%

Gist aac0eca8d414b9a0e631cf8aad0af710

✓ Published0🌍 Public
66ewis
Last edited Apr 1, 2016
Created on Apr 1, 2016

This example demonstrates an interactive React accordion interface where each collapsible panel contains static placeholder text, except for a custom panel that renders a controlled text input. The code uses React’s `createClass` and `setState` to manage the input field’s state, while the accordion relies on React-Bootstrap’s `Accordion` and `Panel` components. It shows how to compose custom child components inside panels while maintaining independent state for nested elements like form inputs. The accordion’s collapsible behavior is driven by React-Bootstrap’s internal event handling, with no external data source or rendering library involved.

AI-generated description

Similar vizzes