如何让我的按钮触发一个元素

How to get my button to trigger an element

我正在使用 nextjs 来编译我的代码和 antd 框架。我无法设置我的按钮定位的样式,我也希望我的 start 按钮触发一组按钮,但由于某种原因它不起作用。下面是我的代码

import React, { Component } from "react";
import Layout from "./Layout";
import { Radio } from "antd";

export default class PositiveAffirmation extends Component {
  state = {
    changeButton: false
  };

  toggleChangeButton = e => {
    this.setState({
      changeButton: e.target.value
    });
  };

  render() {
    const { changeButton } = this.state;
    return (
      <Layout>
        <Radio.Group
          defaultValue="false"
          buttonStyle="solid"
          onChange={this.changeButton}
          className="radio-buttons"
        >
          <Radio.Button value={true}>Start</Radio.Button>
          <Radio.Button value={false}>Stop</Radio.Button>
        </Radio.Group>
        {changeButton && (
          <Button.Group size={size}>
            <Button type="primary">Happy</Button>
            <Button type="primary">Sad</Button>
            <Button type="primary">Fullfiled</Button>
          </Button.Group>
        )}
        <style jsx>{`
          Radio.Button {
            font-size: 100px;
            margin-left: 20px;
            margin-top: 5px;
            margin-bottom: 5px;
            display: flex;
            justify-content: center;
          }
        `}</style>
      </Layout>
    );
  }
}

你打错了 fn 把 onChange={this.changeButton} 改成 onChange={this.toggleChangeButton}