import React from 'react';
import PropTypes from 'prop-types';
function BlogTrends(props) {
BlogTrends.propTypes = {
data: PropTypes.array
};
return (
<div className="container blog-trends">
<h3>{props.data[0].head}</h3>
<h5 className="mar-t-25" >{props.data[0].desc}</h5>
</div>
);
}
function BlogDescription() {
return (
<div className="row">
<div className="col-md-12">
<h5>Kitchen </h5>
<p>Ocean</p>
</div>
</div>
);
}
export default { BlogTrends, BlogDescription };
Error Image:
https://i.stack.imgur.com/fStld.png
Tried:
By removing BlogDescription and making the export statement to 'export default { BlogTrends;' is working . But while I am adding multiple component its not working. tried few things i.e
export default { BlogTrends, BlogDescription };
and
export { BlogTrends, BlogDescription };
and
export BlogTrends;<br />
export BlogDescription;<br />