Home > OS >  REACT : how can i add break line in cell of row in csv file in react-csv
REACT : how can i add break line in cell of row in csv file in react-csv

Time:10-07

I want to create a break line on one of cell in my CSV file but I cant do this

my csv package is react-csv and I try this way :

rowResult.push([
          index   1,
          cartData[item].title   '"'   attrs   '"',
        ]);
      });

result: result but I want this result : but I want this

CodePudding user response:

I find it

must be used this way

"\n"

rowResult.push([
          index   1,
      cartData[item].title   '\n'   attrs   '\n',
        ]);
      });
  • Related