Why using the setState method in React doesn’t mutate the state immediately?The reason is setState is asynchronous, you can’t expect the updated state just after the setState, if you want to check the value use a…Apr 11, 2021Apr 11, 2021