title: 'AWSCognito' is not defined
body: <p>I have used the following example to implement AWS Cognito in nodeJS but i am facing the error
  "'AWSCognito' is not defined  no-undef"</p>
  
  <p>Reference Link : <a href="https://github.com/aws/amazon-cognito-identity-js/" rel="noreferrer">https://github.com/aws/amazon-cognito-identity-js/</a></p>
  
  <p>Following is my code in App.js file. I have used react-app.</p>
  
  <pre><code>    import React, { Component } from 'react';
      import logo from './logo.svg';
      import './App.css';
      import { CognitoUserPool, CognitoUserAttribute, CognitoUser } from 'amazon-cognito-identity-js';
  
      class App extends Component {
        constructor(props, context){
          super(props, context);
          this.state = {
            items: []
          }
        }
        render() {
          const {items} = this.state;
          return (
            &lt;div className="App"&gt;
              &lt;div className="App-header"&gt;
                &lt;img src={logo} className="App-logo" alt="logo" /&gt;
                &lt;h2&gt;Welcome to React&lt;/h2&gt;
              &lt;/div&gt;
              &lt;p className="App-intro"&gt;
                To get started, edit &lt;code&gt;src/App.js&lt;/code&gt; and save to reload.
              &lt;/p&gt;
              &lt;button onClick={(e) =&gt; this.doRegister(e)}&gt;Register&lt;/button&gt;
              { items.map(item =&gt; &lt;p&gt;{item.id}&lt;/p&gt;) }
            &lt;/div&gt;
          );
        }
        doRegister(){
          console.log("Register User");
          var poolData = {
              UserPoolId : 'xxxxxxxxxxx', // Your user pool id here
              ClientId : 'xxxxxxxxxxxxxxxxxx' // Your client id here
          };
  
          var userPool = new AWSCognito.CognitoIdentityServiceProvider.CognitoUserPool(poolData);
          console.debug(userPool);
        }
      }
  
      export default App;
  </code></pre>
  
  <p>This is the code in package.json. You can see the aws-cognito-identity library is already added.</p>
  
  <pre><code>    {
        "name": "my-app",
        "version": "0.1.0",
        "private": true,
        "dependencies": {
          "amazon-cognito-identity-js": "^1.19.0",
          "react": "^15.6.1",
          "react-dom": "^15.6.1",
          "react-scripts": "1.0.10"
        },
        "scripts": {
          "start": "react-scripts start",
          "build": "react-scripts build",
          "test": "react-scripts test --env=jsdom",
          "eject": "react-scripts eject"
        },
        "devDependencies": {
          "json-loader": "^0.5.4",
          "webpack": "^3.0.0"
        }
      }
  </code></pre>
  
  <p>Why it is showing AWSCognito is undefined. Is there anything missing in my code related to AWS Cognito?</p>