docs.sheetjs.com/docz/data/engines.js
2024-10-20 13:42:13 -04:00

13 lines
385 B
JavaScript

import url from './engines.xls';
import React, { useEffect, useState } from 'react';
const EngineData = () => {
const [engines, setEngines] = useState("");
useEffect(() => { (async() => {
const html = await (await fetch(url)).json();
setEngines(html["Engines"]);
})(); }, []);
return ( <p dangerouslySetInnerHTML={{__html: engines}}/> );
};
export default EngineData;