DEV Community

Discussion on: Opinionated React - Use Status Enums Instead of Booleans

realquadrant profile image
timfong888 • Edited on

Hi, I am trying to use enums as state for a blockchain game of rock paper scissors.

But I'm not quite sure how to use it based on this. I get a parsing error:

Can I use the export in the same .js app. Or does it have to be imported?