MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / constructor

Function constructor

src/Collapse.js:58–72  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

56
57class Collapse extends Component {
58 constructor(props) {
59 super(props);
60
61 this.state = {
62 dimension: null,
63 };
64
65 this.nodeRef = props.innerRef || React.createRef();
66
67 ['onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited'].forEach(
68 (name) => {
69 this[name] = this[name].bind(this);
70 },
71 );
72 }
73
74 onEntering(_, isAppearing) {
75 const node = this.getNode();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…