diff --git a/B/7/index.html b/B/7/index.html
new file mode 100644
index 000000000..3b52f2ea7
--- /dev/null
+++ b/B/7/index.html
@@ -0,0 +1,41 @@
+
+
+
+
+
{props.title}
@@ -17,7 +24,7 @@ class App extends React.Component{
render(){
return(
-
+
)
}
diff --git a/高阶函数/exercise9/src/components/proxyHoc.js b/高阶函数/exercise9/src/components/proxyHoc.js
index 481f370b7..66d62609a 100644
--- a/高阶函数/exercise9/src/components/proxyHoc.js
+++ b/高阶函数/exercise9/src/components/proxyHoc.js
@@ -1,10 +1,16 @@
+/*
+ * @Author: chenxuan
+ * @Date: 2021-11-21 15:55:16
+ * @LastEditTime: 2022-01-15 00:19:25
+ * @LastEditors: chenxuan
+ */
import React from 'react'
function Hehe(WithComponent){
return class HocComponent extends React.Component{
constructor(){
super();
this.state={
- userName:""
+ userName:"666"
}
}
setUsername(e){
@@ -17,9 +23,8 @@ function Hehe(WithComponent){
value:this.state.userName
}
};
-
+ console.log(this.props)
return(
-
{this.state.userName}