React & `event.persist()`
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);
// }
React & Hooks
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/10175325.html
未经授权禁止转载,违者必究!