First of all thanks for taking time and making these tutorials @wesbos. Using React 15.0.2 I have noticed that if I use:
{ React.cloneElement(this.props.children, this.props) }
As written in Main.js#L14 component I'll get warnings:
key is not a prop. Trying to access it will result in undefined being returned
Instead this will work:
First of all thanks for taking time and making these tutorials @wesbos. Using React 15.0.2 I have noticed that if I use:
As written in Main.js#L14 component I'll get warnings:
Instead this will work: