dillon1000/react

Commit

Don't break on top-level non-numeric object keys

Previously, this threw (in `__DEV__` only) in `ReactCurrentOwner.current.constructor.displayName` because `ReactCurrentOwner.current` is null:

```
React.renderComponent(<div>{{1: <div />, 2: <div />}}</div>, document.body);
```
Browse files
Changed paths1 file
First-parent comparison
M src/core/ReactDescriptor.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…