Any use of a keyed object should be wrapped in React.addons.createFragment(object) before being passed as a child

This error happens if you try to interpolate a JavaScript object (rather than a JSX element or string) into some JSX.

For example, here’s a small case that produces the warning:

import React from 'react';
window.React = React;
import ReactDOM from 'react-dom';
var content = {foo: 'bar'};
ReactDOM.render(<div>{content}</div>, document.getElementById('some-element'));

Although the error message suggests using createFragment to fix this, the more likely scenario is that you’re interpolating a variable into some JSX that you thought was a string or JSX element, but is in fact some other kind of object.

Since the message doesn’t tell you exactly which expression in your JSX caused the error, you’ll have to track it down by other means – for instance, by looking over the diff in source control of the commit that produced the error, or by eliminating half of your JSX elements at a time until you find the one that makes the error go away.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)