Skip to content

Instantly share code, notes, and snippets.

View dan-codes-16's full-sized avatar

Dan Codes dan-codes-16

View GitHub Profile
// This is an example of how to fetch external data in response to updated props,
// If you are using an async mechanism that does not support cancellation (e.g. a Promise).
class ExampleComponent extends React.Component {
_currentId = null;
state = {
externalData: null
};