Skip to content

React v0.14.0 Do not access .getDOMNode()  #137

@bobiblazeski

Description

@bobiblazeski

I just switched to React 0.14.0 and I'm getting below warning:
ReactDOMComponent: Do not access .getDOMNode() of a DOM node; instead, use the node directly. This DOM node was rendered by Typeahead.

componentWillMount
this.onCity = function(city){
if (this.props.action) {
Dispatcher.dispatch(this.props.action, {
country: ReactDOM.findDOMNode(this.refs.country).value,
city: city
});
}
}.bind(this);
render
(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions