{
"ptr0": [
"Interviewer: Nancy Carolyn Camp Foster (NF)",
"",
"Interviewee: Edith Mills (EM)",
"",
"NF: Well it's kind of interesting to observe how students have turned out who've",
"gone through Bristow schools. We lose track, we don't really realize and",
"",
"Other Persons: Lucy Mae Mills (LM) Unknown Woman (WS)"
]
}
I am trying to map the above objecttrans object ptr0 in jsx in browser where i want empty string in object to be considered as a empty line and each string in an object restricted to one line, something like this i am trying to show in browser jsx:
Interviewer: Nancy Carolyn Camp Foster (NF)
Interviewee: Edith Mills (EM)
NF: Well it's kind of interesting to observe how students have turned out who've
gone through Bristow schools. We lose track, we don't really realize and
Other Persons: Lucy Mae Mills (LM) Unknown Woman (WS)
Component where I am calling the Transcript Component
<Transcript
transcript={objecttrans.ptr0.map(pt=>{
return pt
})}
/>
Transcript Component
return (
<>
<div className="content">
<p>{props.transcript}</p>
</div>
</>
);