React Material UI Label Overlaps with Text

前端 未结 5 1698
滥情空心
滥情空心 2021-02-12 18:59

I\'m using Material UI in a React application and trying to implement an entity update page. In this, we would need to set the exiting values of the entity to let the user updat

5条回答
  •  北恋
    北恋 (楼主)
    2021-02-12 19:31

    I can say whatever works for me try this out .

    This is for Functional based Component.

     const Example = () =>{
       const [name, setName] = useState("");
        const editName = (name) =>{
        setName(name);
      }
    
            return(
               setName(e.target.value)}
                label="Enter Name"
              />
          )
      }
    

提交回复
热议问题