Expected an assignment or function call and instead saw an expression

Reactjs Guru - Feb 10 '24 - - Dev Community

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

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .