While learning from an online tutorial, I came across a situation where the predefined value of the function was set as null for data
and details
. I'm curious about the significance of using null here. Can you clarify what it means?
onClick={(data, details = null) => {
console.log(data.description, details);
}}