DEV Community

Reactjs Guru
Reactjs Guru

Posted on

Expected an assignment or function call and instead saw an expression

The error message “Expected an assignment or function call and instead saw an expression” in React.js typically arises due to a missing return statement within a function, where a value is expected to be returned but isn’t.

Read the full article here

Top comments (1)

Collapse
 
kresli profile image
Eduard Jacko

Why there is no thumbs down emoji to downvote this?