This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>unpkg.com dynamic import module test</title> | |
</head> | |
<body> | |
<script type="module"> | |
window.module = { | |
set exports(module) { | |
window.module.modules.push(module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const saveDataAsAttachment = (() => { | |
const a = document.createElement('a'); | |
a.style = 'display: none'; | |
document.body.appendChild(a); | |
return (data, fileName) => { | |
const blob = new Blob([data], {type: 'octet/stream'}); | |
const url = window.URL.createObjectURL(blob); | |
a.href = url; | |
a.download = fileName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, PropTypes } from 'react'; | |
import ReactDOM from 'react-dom'; | |
import cx from 'classnames'; | |
import { FormGroup, ControlLabel, FormControl, HelpBlock, InputGroup } from 'react-bootstrap'; | |
export default class Input extends Component { | |
static propTypes = { | |
name: PropTypes.string, |