import { useEffect } from 'react' import SearchBox from "./components/SearchBox"; import Facet from "./components/Facet"; import ResultList from "./components/ResultList"; import { searchBox as SearchBoxController, facet as FacetController, resultList as ResultListController, sort as SortController, } from './controllers/controllers' import './App.css' import { headlessEngine } from "./Engine"; import { criteria, Sort } from './components/Sort'; let didInit = false; function App() { useEffect(() => { if (!didInit) { didInit = true; headlessEngine.executeFirstSearch(); } }, []); return ( <>

Coveo Headless Search Interface

) } export default App;