How to loop an object in React?
<p>New to React and trying to loop Object attributes but React complains about Objects not being valid React children, can someone please give me some advice on how to resolve this problem? I've added createFragment but not completely sure where this needs to go or what approach I should take?</p>

<p><strong>JS</strong></p>

<pre><code>var tifs = {1: 'Joe', 2: 'Jane'};
var tifOptions = Object.keys(tifs).forEach(function(key) {
    return &lt;option value={key}&gt;{tifs[key]}&lt;/option&gt;
});
</code></pre>

<p><strong>Render function</strong></p>

<pre><code>render() {
        const model = this.props.model;

        let tifOptions = {};

        if(model.get('tifs')) {
            tifOptions = Object.keys(this.props.model.get('tifs')).forEach(function(key) {
                return &lt;option value={key}&gt;{this.props.model.get('tifs')[key]}&lt;/option&gt;
            });
        }

        return (
            &lt;div class={cellClasses}&gt;

                    &lt;div class="grid__col-5 text--center grid__col--bleed"&gt;
                        &lt;h5 class="flush text--uppercase"&gt;TIF&lt;/h5&gt;
                        &lt;select id="tif" name="tif" onChange={this.handleChange}&gt;
                            {tifOptions}
                        &lt;/select&gt;
                    &lt;/div&gt;

            &lt;/div&gt;
        );
    }
</code></pre>

<p>Error in console</p>

<pre><code>If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object)
</code></pre>