title: How can I read a text file with scala.js?
body: <p>Basically I'm trying to figure out what I need to pass to the <code>onload()</code> method</p>
  
  <pre><code>def selectedFile(e: ReactEventI) = {
    val reader = new dom.FileReader()
    reader.readAsText(e.currentTarget.files.item(0))
    reader.onload(
    ) 
  }
  </code></pre>