mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 12:43:05 +00:00
linting fixes
This commit is contained in:
@@ -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) =>
|
||||
document.head.appendChild(
|
||||
Object.assign(document.createElement('script'), {
|
||||
async: true,
|
||||
src: url,
|
||||
onload: resolve,
|
||||
onerror: reject
|
||||
})
|
||||
)
|
||||
);
|
||||
export default url =>
|
||||
new Promise((resolve, reject) =>
|
||||
document.head.appendChild(
|
||||
Object.assign(document.createElement('script'), {
|
||||
async: true,
|
||||
src: url,
|
||||
onload: resolve,
|
||||
onerror: reject,
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user