ฉันมีรหัสต่อไปนี้เพื่อแสดงเมนูการแจ้งเตือน
<Menu
anchorEl={notificationAnchorEl}
anchorOrigin={{ vertical: 'top', horizontal: 'right' }}
transformOrigin={{ vertical: 'top', horizontal: 'right' }}
open={isNotificationMenuOpen}
onClose={this.handleNotificationMenuClose}
>
{notifications.map(notification => (
<MenuItem
key={notification.id}
component={NotificationItem}
onClick={this.handleNotificationMenuClose}
/>
))}
</Menu>
สิ่งที่ฉันไม่เข้าใจคือฉันจะส่งอุปกรณ์ประกอบฉากไปยังส่วนประกอบ NotificationItem
โดยใช้วัตถุ notification
ที่ฉันมีได้อย่างไร
MenuItem
ทำอะไร หรือคุณต้องการให้มันทำอะไร - person cglacet   schedule 14.02.2019