React & event.persist()
event.persist()
https://reactjs.org/docs/events.html#event-pooling
Tabs API
https://ant.design/components/tabs-cn/#Tabs
onTabClick = (e) => {
// e.persist();
let value = e.target.value;
console.log(`value =`, value);
}
onTabClick = (e) => {
// e.persist();
let title = e.target.dataset.title;
console.log(`title =`, title);
}
// onTabClick = (value) => {
// // e.persist();
// console.log(`value =`, value);
// }