Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates todo example in docs for v0.14 #865

Closed
wants to merge 1 commit into from

Conversation

npverni
Copy link
Contributor

@npverni npverni commented Oct 7, 2015

@@ -190,7 +191,8 @@ export default connect(select)(App);
#### `components/AddTodo.js`

```js
import React, { findDOMNode, Component, PropTypes } from 'react';
import React, { Component, PropTypes } from 'react';
import { findDOMNode } from 'react-dom';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding findDOMNode we can instead change the example to use the ref directly:

const node = findDOMNode(this.refs.input);

becomes

const node = this.refs.input;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Has that always worked?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, that's new in 0.14.

@npverni npverni force-pushed the todo_example_in_v0.14 branch from 57a524f to cd7af7c Compare October 7, 2015 23:47
@gaearon
Copy link
Contributor

gaearon commented Oct 8, 2015

I'll hold off until other PRs are ready so we can update everywhere at once.

@gaearon
Copy link
Contributor

gaearon commented Oct 12, 2015

I'm closing for now as per #885.

@gaearon gaearon closed this Oct 12, 2015
@gaearon
Copy link
Contributor

gaearon commented Oct 15, 2015

Superseded by #901.

@gaearon
Copy link
Contributor

gaearon commented Oct 15, 2015

I'd appreciate some help as described in #901 (comment). Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants