When I used props in react Components,I used this.props.name to access name
.
this.state = {
seconds:parseInt(this.props.start)
};
But when I do the same thing in functions [stateless],I get an error:
function Show(props) {
return (
<p>Hello {this.props.name}!</p>
);
}
Why is it so?