{"size": 517, "ext": "js", "max_stars_repo_path": "src/taskpane/components/Repl/Repl.js", "max_stars_repo_name": "lathroplabs/CodeLaboratoryAddin", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/taskpane/components/Repl/Repl.js", "max_issues_repo_name": "lathroplabs/CodeLaboratoryAddin", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/taskpane/components/Repl/Repl.js", "max_forks_repo_name": "lathroplabs/CodeLaboratoryAddin", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.4782608696, "max_line_length": 100, "alphanum_fraction": 0.6421663443}
import React from "react";
import { PrimaryButton } from "office-ui-fabric-react";


function iframe() {
  return {
      __html: `<iframe name="repl" src="/assets/replSource.html" width="540" height="450"></iframe>`
  }
}

function loadInputData() {
  window.frames['repl'].window.input_data = [1,2,3]
}

export default function Repl() {
  return (
      <div>
        <PrimaryButton onClick={() => loadInputData()}>Load Input Data</PrimaryButton>
        <div dangerouslySetInnerHTML={iframe()} />
      </div>)
}

