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?

nextjs tutorial video

📺 Youtube Tutorial Series

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay