themeteorchef / base

A starting point for Meteor apps.
http://themeteorchef.com/base
MIT License
695 stars 253 forks source link

Check where we can swap querySelector for refs #227

Open thearabbit opened 7 years ago

thearabbit commented 7 years ago

Could your example to use inputRef={ ref => this.textInput = ref } instead of document.querySelector()?

themeteorchef commented 7 years ago

It could, but the structure of the <FormControl /> component from React Bootstrap made this difficult in the past (hard to access the nested refs if I recall correctly).