I am trying to search an element from a map function and scroll to the location of that element –
const time = “1235”
return <RightWrapper>
{arr.map((transcript) => (
<p
dangerouslySetInnerHTML={createMarkup(transcript)}
key={transcript.id}
></p> </RightWrapper>
Here I want to search for value time(which in this case is 12345) in transcript and scroll to that part when there is a match.