React throws Invalid hook call error, why is that?

前端 未结 0 634
情深已故
情深已故 2020-12-09 12:59
import React, { useState } from \'react\';

const Contact = () => {
 const [data] = useState({
    fullname: \'\',
    //More data here
 });
 const formSubmit = (         


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