Skip to content

Commit fa675cd

Browse files
authored
Merge pull request #53 from abdullahtariq1171/remove-constructor
No need for constructor
2 parents ba910b8 + 3eaf62b commit fa675cd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,13 +331,11 @@ if (process.env.NODE_ENV !== "production") {
331331
}
332332

333333
class Ref extends React.PureComponent {
334-
constructor(props) {
335-
super(props);
336-
}
337334
componentDidMount() {
338335
const { innerRef } = this.props;
339336
if (innerRef) innerRef(findDOMNode(this));
340337
}
338+
341339
render() {
342340
const { children } = this.props;
343341
return React.Children.only(children);

0 commit comments

Comments
 (0)