expected an assignment or function call and instead saw an expression
const def = (props) => { <div></div> };
const def = (props) => { return (<div></div>); }; OR const def = (props) => <div></div>;
There are extreme differences between () and {}. Make sure you don't make any.