Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

291
Views
How do I add a break line to this object literal in react?

I have a Column Component, and I'm trying to display these two data points with a break line, please help.

right now the result is:

BusinessName UserName

I'd like:

BusinessName

UserName

<Column
     calculateCellValue={(cellData: { BusinessName: string; UserName: string }) => 
     `${cellData.BusinessName} ${cellData.UserName}`}
/>
about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

insert "\n" :

<Column
     calculateCellValue={(cellData: { BusinessName: string; UserName: string }) => 
     `${cellData.BusinessName} +"\n" +${cellData.UserName}`}
/>
about 4 years ago · Santiago Trujillo Report

0

You should probably share the source code for the Column component as well, but see if this one works:

<Column
     calculateCellValue={(cellData: { BusinessName: string; UserName: string }) => 
     `${cellData.BusinessName}\n${cellData.UserName}`}
/>
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!