export default function counter(state = 0, action) {
    console.log("進入Action");
  console.log(action);
  console.log(state);

  switch (action.type) {
    case 'INCREMENT':
      return state + 1
    case 'INCREMENT_IF_ODD':
      return (state % 2 !== 0) ? state + 1 : state
    case 'DECREMENT':
      return state - 1
    case 'FETCHDATA':
      return state - 100
    default:
      console.log("KK")
      return state
  }
}

@@ -48,18 +48,18 @@
 on) %7B%0A  
-  
+//
 console.
@@ -73,24 +73,26 @@
 Action%22);%0A  
+//
 console.log(
@@ -102,16 +102,18 @@
 ion);%0A  
+//
 console.
@@ -164,32 +164,62 @@
 se 'INCREMENT':%0A
+      console.log(state + 1);%0A
       return sta
@@ -224,16 +224,17 @@
 tate + 1
+;
 %0A    cas
@@ -324,24 +324,56 @@
 DECREMENT':%0A
+        console.log(state - 1);%0A
       return
@@ -382,16 +382,17 @@
 tate - 1
+;
 %0A    cas
@@ -430,16 +430,17 @@
 te - 100
+;
 %0A    def
@@ -443,32 +443,34 @@
  default:%0A      
+//
 console.log(%22KK%22

modify action logic to more nature react