I am having a confusion, we say react js has unidirectional flow which means props can be sent from parent to child only. But then why do we write super(props);??
generally we write
class Test extends React.Component {
constructor(props)
{
super(props);
this.state = { hello : "World!" };
}
}
so why are we sending props from child to parent?? I expect explanation to my question