I am following a beginner tutorial from Pluralsight, on form submit a value is passed to addUser component method and I need to push userName to this.stat
addUser
this.stat
Simpley use async in function
addUser =async (userName) => { console.log(this.state.users) }
this will works fine