CoreSetStateFnOn this pageSetStateFn Overview Type: type A function that accepts the current state and default state as parameters and returns a new state. type SetStateFn<State> = (currentState: State, defaultState: State) => State