Completely updated React, fixed #11, (hopefully)

This commit is contained in:
2018-03-04 19:11:49 -05:00
parent 6e0afd6e2a
commit 34e5f5139a
13674 changed files with 333464 additions and 473223 deletions

View File

@@ -0,0 +1,20 @@
import React from 'react';
import PropTypes from 'prop-types';
/**
* @ignore - internal component.
*
* Internal helper component to allow attaching a ref to a
* child element that may not accept refs (functional component).
*/
class RefHolder extends React.Component {
render() {
return this.props.children;
}
}
RefHolder.propTypes = {
children: PropTypes.node,
};
export default RefHolder;