How to make to set up the room on which I clicked?

When you click on the link "Call" must be substituted by a number from this.state.data

export default class CallBack extends Component {
 constructor(props) {
super(props)

 this.state = {
 data : [
{
 key: 1,
 id: 1,
 name: 'Ivan Ivanov',
 phone: '+79882522312',
},
{
 key: 2,
 id: 2,
 name: 'Smith',
 phone: '88005553535',
},
{
 key: 3,
 id: 3,
 name: 'John Smith',
 phone: '2445251',
},
]
}

 this.columns = [
 { title: 'id', dataIndex: 'id', key: 'id' },
 { title: 'Name', dataIndex: 'name', key: 'name' },
 { title: 'phone Number', dataIndex: 'phone', key: 'phone' },
{
 title: 'Actions',
 dataIndex: ",
 key: 'x',
 render: (record) => 
 this.state.data.length >= 1 ? (
the <div>
 <Popconfirm title="are you sure You want to delete?" okText="Yes", cancelText="No"
 onConfirm={() => this.handleDelete(record.key)}>
 <a href="/call-back">Delete</a>
</Popconfirm>
 <a href={`tel:` + this.state.phone } // Here!
 className='feedback__link' 
 onClick={() => this.handlePhone()}>Call</a> 
</div>
 ) :null,
},
];

}
...
April 19th 20 at 12:36
1 answer
April 19th 20 at 12:38
Solution
record.phone
Thank you) - Emanuel_Ondricka commented on April 19th 20 at 12:41

Find more questions by tags ReactJavaScript