diff --git a/demo/高阶函数/0/src/App1.js b/demo/高阶函数/0/src/App1.js index 645fe57b7..0dd57b989 100644 --- a/demo/高阶函数/0/src/App1.js +++ b/demo/高阶函数/0/src/App1.js @@ -5,7 +5,7 @@ * @LastEditors: chenxuan */ import React from "react"; -import proxyHoc from "./components/hoc/proxyHoc"; +import proxyHoc from "./components/proxyHoc"; class App extends React.Component { constructor() { super(); diff --git a/demo/高阶函数/0/src/App2.js b/demo/高阶函数/0/src/App2.js index 7ca6032e6..0812f26b7 100644 --- a/demo/高阶函数/0/src/App2.js +++ b/demo/高阶函数/0/src/App2.js @@ -1,5 +1,5 @@ import React from "react"; -import extendsHoc from './components/hoc/extends' +import extendsHoc from './components/extends' class App extends React.Component { constructor() { super(); diff --git a/demo/高阶函数/0/src/components/hoc/extends.js b/demo/高阶函数/0/src/components/extends.js similarity index 100% rename from demo/高阶函数/0/src/components/hoc/extends.js rename to demo/高阶函数/0/src/components/extends.js diff --git a/demo/高阶函数/0/src/components/hoc/proxyHoc.js b/demo/高阶函数/0/src/components/proxyHoc.js similarity index 100% rename from demo/高阶函数/0/src/components/hoc/proxyHoc.js rename to demo/高阶函数/0/src/components/proxyHoc.js diff --git a/demo/高阶函数/0/src/components/test/index.js b/demo/高阶函数/0/src/components/test/index.js deleted file mode 100644 index 251f77054..000000000 --- a/demo/高阶函数/0/src/components/test/index.js +++ /dev/null @@ -1,8 +0,0 @@ -import React from "react"; -import Css from "./style.css"; -class Confirm extends React.Component { - render() { - return
test
; - } -} -export default Confirm; diff --git a/demo/高阶函数/0/src/components/test/style.css b/demo/高阶函数/0/src/components/test/style.css deleted file mode 100644 index ab6e66b5a..000000000 --- a/demo/高阶函数/0/src/components/test/style.css +++ /dev/null @@ -1,10 +0,0 @@ -.test{ - margin-top: 24px; - font-size: 12px; - text-align: center; - background-color: rgb(57, 13, 179); -} -.test.active{ - color: #fff; - font-weight: bold; -} \ No newline at end of file