Completely updated React, fixed #11, (hopefully)
This commit is contained in:
20
goTorrentWebUI/node_modules/material-ui/internal/RefHolder.js.flow
generated
vendored
Normal file
20
goTorrentWebUI/node_modules/material-ui/internal/RefHolder.js.flow
generated
vendored
Normal 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;
|
Reference in New Issue
Block a user