I am new to React and am attempting to highlight the text in a JSX expression based on the keywords from an array.
return <RightWrapper>
{value.sort((a, b) => a - b.id).map(transcript => <p key={transcript.id}>{transcript.createdAt+" "+ transcript.Transcription +" "} </p> )}
</RightWrapper>
searchWords={["tech", "deck", "financial"]}