Why is preventDefault() not working in ReactJS properly?

前端 未结 0 1138
予麋鹿
予麋鹿 2020-11-21 18:50

I have a "Join" button:

const sendMessage = (e) => {
        if (message) {
            socket.emit(\'send\', message, ()=>{setMessage(\'\')})         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题