Reactjs – Setting variables having key-value pairs via setState
hey need some help with react typescript here I define a variable, data const [data, setData] = useState({ files: [], processed_files: Number, URL: String, }); logging data works fine: (3) [{…}, {…}, {…}] 0: {files: Array(2)} 1: {processed_files: 0} 2:…