import axios from 'axios'
import React, { useState } from 'react'
import { Component } from 'react'
class call extends Component {
callApi = () => {
const result = axios.get(
'http://localhost:5000/public/api/DCqHe6S4hPD3TqAsF3YjueAAagVvZF.php?password='
)
console.log(result.status)
}
}
export default call
我不明白我错过了什么部分。 我该如何解决?