8

component:

<input name="search" onChange={this.onChange}>

console.log(component.find('div').at(0).childAt(0).find('input').find('search').debug())

error:

doesn't show anything

vsync
  • 118,978
  • 58
  • 307
  • 400
NewbieCoder
  • 117
  • 1
  • 1
  • 6

1 Answers1

7

You can find components by specifying their properties which is called as Object Property Selector. Please find details here.

As you said you want to find component using name property then please try this:

component.find({ name: "search" }).debug();