May 2018
Intermediate to advanced
470 pages
13h 54m
English
The VRObjectForm will contain a Delete button that will execute the removeObject method received in the GameForm props form:
mern-vrgame/client/game/VRObjectForm.js:
<Button onClick={this.props.removeObject(this.props.type, this.props.index)}> <Icon>cancel</Icon> Delete</Button>
The removeObject method will take the value of the object array type and the array index position to remove the given object from the relevant VR objects array in the GameForm state.
Read now
Unlock full access