react的hooks中,useReducer的第三个参数有什么用?initialArg和init的区别。
As far as I can experiment, the init function as third arg is a transformer of the initialState.
e文,题主参考下
https://stackoverflow.com/questions/59041341/whats-the-purpose-of-the-3rd-argument-in-usereducer