I want to access state's property when state isn't mounted yet.
class App extends React.Component{ constructor(props){ super(props) this.state = { test: 2, score: test * 2 } }
I wanna make score
4 but get this error:
'test' is not defined no-undef
P.S score: this.state.test
doesn't work neither.