Probably a very basic question, but I can't figure it out. I have a form that uses the following variables as state which returns true/false:
ccValid, dateValid, cvvValid, nameValid, addressValid
I want to have one variable that is equal to all of these.
Ex.
const formValid = {ccValid, dateValid, cvvValid, nameValid, addressValid} = this.state