How can the data obtained from the interface with axios be added to react?

1. Use axios to get the data in the interface. If you want to add the data to the span tag in render, how to add it?
2.axios.get ("", {

)
        timeout: 1000,
    })
        .then(function (response) {
            var lists=response.data.data;
            var problem=lists.ASK_CONTENT;
            console.log(problem);
        })
        .catch(function (error) {
            console.log(11111);
        });
        
        

render () {

    const { getFieldDecorator } = this.props.form;
    const formItemLayout = {
        labelCol: { span: 6 },
        wrapperCol: { span: 14 },
    };
    return (
        <Form onSubmit={this.handleSubmit}>
            <FormItem
                {...formItemLayout}
                label=":"
                className="problems"
            >
                <span className="ant-form-text wenti">problem</span>
            </FormItem>

3.
clipboard.png

clipboard.png

Mar.01,2021

there should be a state manager, such as redux, mobx, and so on. It would be nice if the data obtained by
is directly setState .
recommend dva

Menu