curly brackets?
Could not be like this? const TimelineCard = id => { ...
The { id } part is called deconstructing, This extracts the id key value from the object that is passed in the function You can read more here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
Обсуждают сегодня