I want to render the component in the map method by using a state value from db
example: -
const [post, setPost] = useState([]);
<>
{post.map((ce) => (
<div key={ce._id}>
<h2>{ce.tittle}</h2>
<p>{ce.content}</p>
<{ce.component}/> /// i don't no it's right or wrong.
</div>
))}
</>