Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
var self = this;
jsonp('https://api.github.com/user/emails', {
jsonpCallbackFunctionName: 'jsonpCb'
}).then(function(response) {
return response.json();
}).then(function(data) {
self.setState({
data: data
});
});
}