This.setState () cannot update ui

< H2 > question < / H2 > The

requirement is to display a component by clicking on the event, requesting data in the component, and then rendering. The problem now is that the component can be displayed after clicking, but the ui? cannot be updated through this.setState after the data is obtained.
* *

< H2 > Code < / H2 >

* *


<span
    onClick={this.handleClick}
    style={this.state.style}
>
    {this.props.children}
    {
      // handleClickthis.state.showtruePopover;
      this.state.show ? <Popover text={text}/> : null
    }
</span>

class Popover extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      content: "",
    };
    console.log("props:  " + this.props.text);
  }

  componentDidMount() {
    hasTranslation(this.props.text).then((res) => {
      if(res.hasTranslation) {
        console.log("meanings:   " + res.meanings);
        this.setState({
          content: res.meanings,
        }, () => {
          console.log("new state:  " + this.state.content);
        })
      }
    });
  }

  render() {
    return (
      <div
        style={{
          position: "absolute",
          top: "100",
          left: "100",
        }}
      >
        {
            //ui
          this.state.conent ? this.state.content : null
        }
      </div>
    );
  }
}

the following is the debug content

you can see that the data has been obtained correctly and the value of this.state.content has changed, but ui

has not been updated.
Mar.03,2021

this.state.conent? This.state.content: null, is your code wrong
this.state.conent should be this.state.content

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e016-4da78.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e016-4da78.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?