Skip to content

Commit

Permalink
fix(withScriptjs): make compatible with recompose@^0.26
Browse files Browse the repository at this point in the history
* Closes #659
  • Loading branch information
tomchentw committed Oct 11, 2017
1 parent 450e1a8 commit 20f91af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/withScriptjs.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import _ from "lodash"
import invariant from "invariant"
import canUseDOM from "can-use-dom"
import { getDisplayName, createEagerFactory } from "recompose"
import { getDisplayName } from "recompose"
import PropTypes from "prop-types"
import React from "react"

Expand All @@ -10,7 +10,7 @@ const LOADING_STATE_BEGIN = `BEGIN`
const LOADING_STATE_LOADED = `LOADED`

export function withScriptjs(BaseComponent) {
const factory = createEagerFactory(BaseComponent)
const factory = React.createFactory(BaseComponent)

class Container extends React.PureComponent {
static displayName = `withScriptjs(${getDisplayName(BaseComponent)})`
Expand Down

0 comments on commit 20f91af

Please sign in to comment.