import React, { Component } from 'react';
import './NavMenu.css';
export class PlusCard extends Component {
static displayName = PlusCard.name;
constructor(props) {
super(props);
this.state = { currentCount: 0 };
this.incrementCounter = this.incrementCounter.bind(this);
this.decrementCounter = this.decrementCounter.bind(this);
}
incrementCounter() {
this.setState({
currentCount: this.state.currentCount + 1
});
}
decrementCounter(){
this.setState({
currentCount: this.state.currentCount - 1
});
if(this.state.currentCount < 0)
{
console.log("error")
}
}