Skip to content

Commit

Permalink
simpler check
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Jan 20, 2017
1 parent b1aa816 commit 1fdf2d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TransitionGroup.js
Expand Up @@ -189,8 +189,8 @@ class TransitionGroup extends React.Component {
for (let key in this.state.children) {
let child = this.state.children[key];
if (child) {
let isCallbackRef = typeof child.ref === 'function';
warning(!child.ref || isCallbackRef,
let isCallbackRef = typeof child.ref !== 'string';
warning(isCallbackRef,
'string refs are not supported on children of TransitionGroup and will be ignored. ' +
'Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute');

Expand Down

0 comments on commit 1fdf2d3

Please sign in to comment.