Closed
Description
We updated and started getting this warning everywhere:
Warning: Any use of a keyed object should be wrapped in
React.addons.createFragment(object)
before being passed as a child.
Took me a while to realize that it was because we were using Number
instances in our jsx.
I wonder if it would be acceptable to apply .valueOf()
first (if present) to legalize this situation?
// Obviously we're not literally doing this:
<span>{new Number(5)}</span>
Metadata
Metadata
Assignees
Labels
No labels