I have been trying to figure this out for awhile but basically I have a list of tags with
tags with onClick properties that should change a state variable postsShown to true. Tricky thing is the postsShown is supposed to be an array of boolean values and uses the index to differentiate which
tag was clicked. Now the state variable does update but gets stuck and does not get detected by my conditional statement. this is my code, I have tried calling the setState function with a callback but get an error