Suppose I already define an component:
class Co extends React.Component {
render = () => {
const name = this.props.name;
return (
<p>Hello, my name is {name}</p>
)
}
}
and store it in an variable:
const co = <Co />;
How can I set the component's props with the variable? Would co.props.set work?