useState and checkbox wrong state in reactjs
I know this topic has been discussed many times and I have already tried a few things. Initially the checkbox is not checked, which is correct. At the first click hasTableHeader is still false and only at the second click…