#impossible to pass props
1 messages · Page 1 of 1 (latest)
I tried recreating it and the default value seems to work for me. Can you post the complete component?
function Parent() {
return (
<Test />
)
}
function Test(props: any) {
return (
<div className={`${props.color ?? "text-red-500"}`}>
Hello World
</div>
)
}