In this code the newArr is having a data like  and i want to display which
    and i want to display which type=="sent" should be display in right side and other data should be dipalyed on left side . But the issue is data is not diaplying .please help me thanks in advance
  { newArr ? newArr.map((m) => {
            (m.type === "sent") ? 
            <div style={{float:"right"}}>{m.msg}</div>
            : <div style={{float:"left"}}>{m.msg}</div>
          }): null }
 
    