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
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
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();