Creating and editing games
Users registered on MERN VR Game will be able to make new games and modify these games from within the application. We will add React components that allow users to modify game details and VR object details for each game.
Making a new game
When a user signs into the application, they will see a MAKE GAME
link on the menu that will navigate them to the NewGame
component containing a form to create a new game.
Updating the menu
We will update the navigation menu to add the MAKE GAME
button, as shown in the following screenshot:
In the Menu
component, we will add the Link
to the route for the NewGame
component, right before the MY PROFILE
 Link, in the section that renders only when the user is authenticated.
mern-vrgame/client/core/Menu.js
:
<Link to="/game/new"> <Button style={isActive(history, "/game/new")}> <AddBoxIcon color="secondary"/> Make Game </Button> </Link>
NewGame component
The NewGame
component uses the GameForm
component...