MCPcopy Create free account
hub / github.com/adobe/react-spectrum / constructor

Method constructor

packages/dev/docs/src/ThemeSwitcher.js:94–97  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

92
93class ErrorBoundary extends React.Component {
94 constructor(props) {
95 super(props);
96 this.state = {error: null};
97 }
98
99 static getDerivedStateFromError(e) {
100 return {error: e.message};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected