DEV Community

Discussion on: Read CSV Files in React Apps without Installing Any Package

Collapse
 
agusgarcia3007 profile image
Agustin Garcia

hey! could you solve the extra blank item in rows bug? I'm having the same problem

0: {name: 'joey', age: '21', rank: 'senior'}
1: {name: 'amanda', age: '28', rank: 'mid'}
2: {name: 'peter', age: '24', rank: 'junior'}
3: {name: '', age: undefined, rank: undefined

Collapse
 
theallegrarr profile image
Nurudeen Amedu

It could be due to a blank row in your csv, but it can be solved by checking the final data for undefined values and removing the row