I am just writing to text input and in onChange event i call setState, so React rerenders my UI. The problem is that the text input always lose a f
onChange
setState
I solved the same issue deleting the key attribute in the input and his parent elements
// Before { const page = e.target.value ? Number(e.target.value) - 1 : 0 gotoPage(page) }} /> // After { const page = e.target.value ? Number(e.target.value) - 1 : 0 gotoPage(page) }} />