Skip to content
This repository was archived by the owner on May 7, 2022. It is now read-only.

Commit e04c5b4

Browse files
committed
修复eslint错误
1 parent 2190992 commit e04c5b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AsyncComponent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
const asyncComponent = loadComponent => (
33
class AsyncComponent extends React.Component {
44
state = {
5-
Component: null,
5+
Component: null
66
}
77

88
componentWillMount() {
@@ -16,7 +16,7 @@ const asyncComponent = loadComponent => (
1616
this.setState({ Component });
1717
})
1818
.catch((err) => {
19-
console.error(`Cannot load component in <AsyncComponent />`);
19+
console.error('Cannot load component in <AsyncComponent />')
2020
throw err;
2121
});
2222
}

0 commit comments

Comments
 (0)