set state dynamically - Kevin Powell - Community