ReactJS component not rendering textarea with state variable

前端 未结 3 1972
无人共我
无人共我 2021-02-01 16:26

I am facing an intriguing bug in React.

I have this component:

\'use strict\';
import SummaryStore from \'../stores/SummaryStore\';
import React from \'rea         


        
3条回答
  •  攒了一身酷
    2021-02-01 17:16

    Actually that is exactly what is wrong. From the docs:

    If you want to initialize the component with a non-empty value, you can supply a defaultValue prop.

提交回复
热议问题