What’s the purpose of the 3rd argument in useReducer?

EDIT july 2020: React documentation has now better explainations on this arg called lazy initializer. Using this function in another way could result to breaking changes due to undocumented effect. Following answer remain valid. As far as I can experiment, the init function as third arg is a transformer of the initialState. It means that … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)