Chris Shepherd

Results 12 comments of Chris Shepherd
trafficstars

Yeah, good idea. Were you thinking something like this: ``` javascript const found = findWithProp(component, 'propName', propValue); ``` We'd need to think about what would happen with objects and arrays...

The reason the functions that find a single result throw is to mirror how the [`react-addons-test-utils`](https://facebook.github.io/react/docs/test-utils.html#findrenderedcomponentwithtype) work. I use what @aaronbeall has put in his comment. In my opinion, either...