데이터는이 양식에 있습니다동안 오류가 렌더링 JSON 데이터 [Reactjs]
_getTags() {
console.log(this.props.tagsview);
return this.props.tagsview.map(tags => {
var newItem = tags.map(p => <span className="tag" key={p.tag_id}>{p.name}</span>);
return ({newItem);
});
}
내가 이것을 실행하는거야 때 내가 갖는 :
error react.js:18893 Uncaught Error: Objects are not valid as a React child (found: object with keys {newItem}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.(…)
내가 무엇이 누락 되었습니까?
다른 방법이 있습니까?