vendredi 27 mai 2016

Bug? {React.cloneElement(this.props.children, ...this.props)}

I'm trying to test a component and I'm getting this error:

http://ift.tt/24czlhO

It's when ever I test this:

{React.cloneElement(this.props.children, ...this.props)}

inside of a Component test.

This is basically what the test looks like, pretty simple:

http://ift.tt/1Wruf1W

Is this a bug? Or am I missing something?

Aucun commentaire:

Enregistrer un commentaire