get the current state value
get the current state value and map it with a function f
modify the current state value
store a new state value