MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / DataProvider

Function DataProvider

code/composition/public/app.js:196–206  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

194 _inherits(DataProvider, _React$Component);
195
196 function DataProvider(props) {
197 _classCallCheck(this, DataProvider);
198
199 var _this = _possibleConstructorReturn(this, (DataProvider.__proto__ || Object.getPrototypeOf(DataProvider)).call(this, props));
200
201 _this.state = { data: null };
202 setTimeout(function () {
203 return _this.setState({ data: 'Hey there!' });
204 }, 5000);
205 return _this;
206 }
207
208 _createClass(DataProvider, [{
209 key: 'render',

Callers

nothing calls this directly

Calls 2

_classCallCheckFunction · 0.70

Tested by

no test coverage detected