Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #expected #assignment #function #call #expression
ADD COMMENT
Topic
Name
5+9 =