We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 081d632 commit d1bcf73Copy full SHA for d1bcf73
src/Keyframes.js
@@ -78,7 +78,8 @@ class Keyframes extends React.PureComponent {
78
}
79
80
static create = primitive => states => {
81
- if (typeof states === 'function') states = { [DEFAULT]: states }
+ if (typeof states === 'function' || Array.isArray(states))
82
+ states = { [DEFAULT]: states }
83
return props => (
84
<Keyframes primitive={primitive} states={states} {...props} />
85
)
0 commit comments