xxx
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import React from "react";
|
||||
import proxyHoc from "./components/hoc/proxyHoc";
|
||||
const Chen = proxyHoc((props) => {
|
||||
console.log({ ...props});
|
||||
return (
|
||||
<div>
|
||||
<input type="text" placeholder="请输入用户名" {...props.username}></input>
|
||||
<li>{props.username.value}</li>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
class App extends React.Component {
|
||||
constructor() {
|
||||
super();
|
||||
this.state = {};
|
||||
}
|
||||
componentDidMount() {}
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<Chen title="xxxxx" id="66666"></Chen>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
export default App;
|
||||
Reference in New Issue
Block a user