Even after attempting to include the styled component in the child component, I noticed that the values remained unchanged.
The child component displays:
<a href='' className='displayCarft'>{props.craftcolor}</a>
I have integrated the child component into the parent component as follows:
<div classname='container'>
<Child color={props.color}/>
</div>
In an effort to utilize the styled component, I made the following changes:
const Styledcomp = styled(Child)`
.displayCarft{
color: green !important;
}
`
<div classname='container'>
<Styledcomp color={props.color}/>
</div>