@darwino/darwino-react
Version:
A set of Javascript classes and utilities
27 lines (23 loc) • 466 B
JavaScript
/*
* (c) Copyright Darwino Inc. 2014-2017.
*/
import React, { Component } from "react";
/*
* Collapsible Section
*/
class Base extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
this.state = {
expanded: props.defaultExpanded
};
}
handleClick() {
this.setState({
expanded: !this.state.expanded
});
}
}
export default Base;
//# sourceMappingURL=BaseSection.js.map