kulley 6 anos atrás
pai
commit
3eeb47e714
1 arquivos alterados com 11 adições e 2 exclusões
  1. 11 2
      src/pages/my/manage/orders/index.js

+ 11 - 2
src/pages/my/manage/orders/index.js

@@ -78,7 +78,7 @@ class Search extends Component {
         this.autoFocusInst.focus();
     }
 
-    onChange= (value) => {
+    onChange = (value) => {
         this.setState({ value });
     };
 
@@ -105,7 +105,16 @@ class SearchQuery extends Component {
         this.state = {
 
         }
-        console.log('mount / mount again')
+        console.log('mount')
+    }
+
+    componentWillMount() {
+        console.log('componentWillMount')
+    }
+
+    componentWillReceiveProps(next) {
+        console.log(next)
+        console.log('componentWillReceiveProps')
     }
 
     render() {