ReactJS component not rendering textarea with state variable

前端 未结 3 1968
无人共我
无人共我 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:07

    Check this link from react docs: React Textarea Value

    Basically for textArea react does not supports text enclosed within and you rather need to specify that as value or defaultValue.

    The right way thus is