I am relatively new to React and I have something that seems simple but is not working:
state = {
apple: false,
orange: false,
appleOrOrange: (this.state.apple || this.state.orange)
}
I get an error saying this.state.apple is undefined. Anyone know how I could fix this?