Skip to content

Commit

Permalink
feat(withScriptjs): add named export
Browse files Browse the repository at this point in the history
* Ref #607
  • Loading branch information
tomchentw committed Sep 15, 2017
1 parent 8e7e5de commit 134f90c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/withScriptjs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const LOADING_STATE_NONE = `NONE`
const LOADING_STATE_BEGIN = `BEGIN`
const LOADING_STATE_LOADED = `LOADED`

export default function withScriptjs(BaseComponent) {
export function withScriptjs(BaseComponent) {
const factory = createEagerFactory(BaseComponent)

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

return Container
}

export default withScriptjs

0 comments on commit 134f90c

Please sign in to comment.