import { HlList, HlLayerContainer, HlLayer } from 'react-transformer-qa-decode-visualize' import 'react-transformer-qa-decode-visualize/dist/index.css' import { useEffect, useState } from 'react' const axios = require('axios').default; function App() { const [qa_data, set_qa_data] = useState([[]]) const [question,set_question] = useState("What's my name?") const [context,set_context] = useState("My name is Clara and I live in Berkeley.") let request_qa_data = () => { axios.post('http://127.0.0.1:7680/question-answer',{ question, context }) .then(function (response) { console.log(response.data) set_qa_data(response.data) }) } return (