JSFiddle - React, Tailwind, and code Playground
JavaScript
const app = {
enums: {
ROCK: 'ROCK',
PAPER: 'PAPER',
SCISSORS: 'SCISSORS',
DEFAULT_USER_CHOICE: this.ROCK //default, take note of this keyword
},
prop: {
isGameRunning: false,
mySelection: app.enums.ROCK //ERROR LINE
}
};