Property does not exist on type 'string'.ts(2339) Typescript Error

238 views Asked by At

I am using Typescript with React and trying to populate the value for input (@nextui-org/react) , But I am getting the error as below, Any suggestions on how to resolve this?

The data is defined as below and contains json key with name, the object for data is very big and dynamic.

const [data, setData] = useState("");

enter image description here

0

There are 0 answers