How to set defaultValue of a radioGroup from a nested Array object in React state?
问题 I have this array Object in State called formRating formRating:Array[22] 0: {…} condId: "C2.1(a)" rate: "N/A" 1: {…} condId:"C2.2(b)" rate:"3" 2: {…} 3: {…} I also have a few RadioGroups in the render letting the user manipulate the state object above. <Grid item xs={7} style={{marginTop:32}}> Condition 1</Grid> <Grid item ><RadioGroup name="C2.1(a)" defaultValue={this.getDefaultValue('C2.1(a)')} onChange={this.changeButton("C2.1(a)")} style={{display: 'flex', flexDirection: 'row'}}> What