Skip to content

Commit d799d55

Browse files
committed
this.lastPersonRef.current.focus() is not a function
1 parent c5718f4 commit d799d55

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

firstapp/src/hoc/WithClass.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React, { Component } from 'react';
2+
3+
const withClass = (WrappedComponent, className) => {
4+
return class extends Component {
5+
render() {
6+
return (
7+
<div className={className}>
8+
<WrappedComponent {...this.props} />
9+
</div>
10+
)
11+
}
12+
}
13+
}
14+
export default withClass;

0 commit comments

Comments
 (0)