I want to console.log() the searchActive state before and after it is updated. Initially its value is false. When I put the second
console.log()
searchActive
false