Check this function below, what would I call the thread thats coming in on this function below, is it a parameter? or is it a destructured part of an object? does the curly brace mean this is still a parameter? im just a little confused
const ChatThread = ({thread}) => {
return (
<div>
</div>
)
}
if I do the same function like below i get an error with the thread, why is it required to use the curly braces to get the data?
const ChatThread = (thread) => {
return (
<div>
</div>
)
}