React input defaultValue doesn't update with state

后端 未结 5 1615
孤街浪徒
孤街浪徒 2020-11-28 05:27

I\'m trying to create a simple form with react, but facing difficulty having the data properly bind to the defaultValue of the form.

The behavior I\'m looking for is

5条回答
  •  一向
    一向 (楼主)
    2020-11-28 06:13

    Give value to parameter "placeHolder". For example :-

     
    

提交回复
热议问题