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

Function getDerivedStateFromProps

src/PopperContent.js:67–72  ·  view source on GitHub ↗
(props, state)

Source from the content-addressed store, hash-verified

65 }
66
67 static getDerivedStateFromProps(props, state) {
68 if (props.isOpen && !state.isOpen) {
69 return { isOpen: props.isOpen };
70 }
71 return null;
72 }
73
74 componentDidUpdate() {
75 if (

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…