message: call the handler
diff: import React from "react";
  +import PropTypes from "prop-types";
  import uuidv4 from "uuid/v4";
  import "./style.css";
  @@ -6,13 +7,20 @@ export default class OpenButton extends React.Component {
  constructor(props) {
  super(props);
  this.id = uuidv4();
  + this.handleChange = this.handleChange.bind(this);
  + }
  + handleChange(e) {
  + this.props.onFileSelected(e.target.files[0]);
  }
  render() {
  return (
  <span className="file-input">
  - <input id={this.id} type="file" accept="application/json, text/html" />
  + <input id={this.id} type="file" accept="application/json, text/html" onChange={this.handleChange} />
  <label htmlFor={this.id}><i className="btn-action si-open" /></label>
  </span>
  );
  }
  + static propTypes = {
  + onFileSelected: PropTypes.func.isRequired
  + };
  }
  