Because you do never change the state of GameRoom. You only change the state of Main. States are not share between components. Each stateful component has its own state.
I guess you just need to practice react a bit more first.
Because you do never change the state of GameRoom. You only change the state of Main. States are not share between components. Each stateful component has its own state.
I guess you just need to practice react a bit more first.