I have a bunch of radio buttons with several duplicate attributes. Can I somehow assign all these in one place, maybe like [a, b, c] = (js)()? Thank you.
<input type="radio" value={`${index}-0`}
key={`${index}-0`}
id={`${index}-0`}
checked={this.state.selections[index] === 0 }
onChange={this.handleChange} />
<label htmlFor={`${index}-0`} className="pure-radio"> 0 </label>
<input type="radio" [value]="index0" [key]="index0" [id]="index0">in your template file and changeindex0in your js file.