@ -28,7 +28,7 @@ class Home extends Component {
mountCodeExample('timerExample', TIMER_COMPONENT);
mountCodeExample('todoExample', TODO_COMPONENT);
mountCodeExample('markdownExample', MARKDOWN_COMPONENT);
})
});
}
render() {
@ -9,13 +9,14 @@
'use strict';
export default url => new Promise((resolve, reject) =>
export default url =>
new Promise((resolve, reject) =>
document.head.appendChild(
Object.assign(document.createElement('script'), {
async: true,
src: url,
onload: resolve,
onerror: reject
)
);
onerror: reject,
}),
),