Hi I have this render method
return(
<Form.Group className={'d-flex justify-content-start'}>
<Form.Label className={'mb-0 mr-2'}><b>Pohlavie:</b></Form.Label>
<Form.Check
type="radio"
label="Muž"
name="formHorizontalRadios"
id="formHorizontalRadios1"
className={'mr-2'}
/>
<Form.Check
type="radio"
label="Žena"
name="formHorizontalRadios"
id="formHorizontalRadios2"
/>
</Form.Group>
)
I am using react bootstrap Form.Check radio type component. Now From parrent i am getting object via props which have user.gender atribute (1 or 0) how i could connect this radioselect with gender attribute via state or somethin? Like when i select girl i have to change user.gender to 1 and also i have to make one of these radioselects default checked if value of user.gender is not null... How can i do that please?