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
You must return something
instead of this (this is not the right way)
const def = (props) => { };
try
const def = (props) => ( );
or use return statement
const def = (props) => { return };