I have an array of buttons with a 'selected' and 'deselected' state. How do I go about checking if any button in the array is in the 'selected' state.
So essentially I want something like:
for button in buttonArray button.onClick -> this.stateCycle("selected", "default")
if any button in buttonArray state.current == "selected" activateMainButton() else deactivateMainButton()
for anyone curious, this is the solution: https://screencast.com/t/pqg5lYLD8Fo
could you post the Framer? Would love to take peek ;)