title: Create React apps using Kotlin and External
body: <p>I'm trying to wrap this simple API: <a href="https://github.com/github-tools/github" rel="nofollow noreferrer">https://github.com/github-tools/github</a>, just for study purpose. So, I created this external classes:</p>
  
  <pre><code>package index
  
  import com.github.jesty.githubapi.Result
  import com.github.jesty.githubapi.User
  import kotlin.js.Promise
  
  external class GitHub(user: User) {
      fun getUser(): GHUser
  }
  
  external class GHUser {
      fun listStarredRepos(): Promise&lt;Result&gt;
  }
  </code></pre>
  
  <p>In a simple KotlinJS project everything is ok, but when I try to use in a project created with <a href="https://github.com/JetBrains/create-react-kotlin-app" rel="nofollow noreferrer">Create React Kotlin App</a> I have the error below:</p>
  
  <pre><code>ReferenceError: GitHub is not defined 
  </code></pre>