Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/docs/04-multiple-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ var MyComponent = React.createClass({
});
```

Note that `key` is not a prop; trying to access `this.props.key` from inside `ListItemWrapper.render` wil be undefined. If you need to access the same value within the child component, you should pass it as a different prop (ex: `<ListItemWrapper key={result.id} id={result.id} />`) While this may seem redundant, it's important to separate app logic from reconciling hints.

You can also key children by passing a ReactFragment object. See [Keyed Fragments](create-fragment.html) for more details.

## Data Flow
Expand Down