I am trying to fix this lint error at line const def = (props) => { in following sample code.
const def = (props) => {
const propTypes = { prop1: PropTypes.string, pr
The return statements should place in one line. Or the other option is to remove the curly brackets that bound the HTML statement.
example:
return posts.map((post, index) => {post.title} {post.body} );
{post.body}