skip to Main Content

Reactjs – State not updating correctly when using multiple if statements

const IMETrainer = (props) => { // ROOT STATES const [firstString, setFirstString] = useState(true); const [secondString, setSecondString] = useState(true); const [thirdString, setThirdString] = useState(true); const [fourthString, setFourthString] = useState(true); const [fifthString, setFifthString] = useState(true); const [sixthString, setSixthString] = useState(true); //…

VIEW QUESTION
Back To Top
Search