Set state via arguments