1<RadioButtonGroup
2 onChange={(event) => {
3 setStyle(prevStyle => ({
4 ...prevStyle,
5 font: { ...prevStyle.font, align: event.target.value }
6 }));
7 console.log(style);
8 }}
9/>
10
1const onChange = (event) => {
2 const s = {...style};
3 s.font.align = event.target.value;
4 setStyle(s);
5}
6