Please , am having some error that is proving diffcult to fix for me. I have a simple react component below
import React from 'react';
const ForumPostComponent = (topics) => {
const {forums} = topics;
return (
forums.toJS().map((forum, key) => {
console.log(forum);
return (
<div className="post" key={key}>
)
})
)
}
In another component, i used my react forumComponent like .
<ForumPostComponent forums={this.props.forums.get('forums')} />
It throws the error in the title. Also My console message in the forum component returns values . I tried and read many similar questions all to no aveil. Please what exactly am i missing.?