How to use universal-jsonp - 1 common examples

To help you get started, we’ve selected a few universal-jsonp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / rax / examples / modules / src / JsonpDemo.js View on Github external
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
      });
    });
  }

universal-jsonp

A universal JSONP utilities.

BSD-3-Clause
Latest version published 6 years ago

Package Health Score

60 / 100
Full package analysis

Popular universal-jsonp functions

Similar packages