Skip to content

Commit 134f90c

Browse files
committed
feat(withScriptjs): add named export
* Ref #607
1 parent 8e7e5de commit 134f90c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/withScriptjs.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const LOADING_STATE_NONE = `NONE`
99
const LOADING_STATE_BEGIN = `BEGIN`
1010
const LOADING_STATE_LOADED = `LOADED`
1111

12-
export default function withScriptjs(BaseComponent) {
12+
export function withScriptjs(BaseComponent) {
1313
const factory = createEagerFactory(BaseComponent)
1414

1515
class Container extends React.PureComponent {
@@ -83,3 +83,5 @@ export default function withScriptjs(BaseComponent) {
8383

8484
return Container
8585
}
86+
87+
export default withScriptjs

0 commit comments

Comments
 (0)