increment and decrement in reactjs