Problems with react state status updates

there is an input to enter content into it, and then click send to empty the content in the input. I wrote this: after I click to send, the text in the state is already empty, but the input is not empty, that is, the view has not been updated. Why? shouldn"t you update the view automatically after changing the state?

Mar.16,2021
Menu