docs.sheetjs.com/docz/data/engines.js

13 lines
385 B
JavaScript
Raw Permalink Normal View History

2024-01-29 03:29:45 +00:00
import url from './engines.xls';
import React, { useEffect, useState } from 'react';
const EngineData = () => {
const [engines, setEngines] = useState("");
useEffect(() => { (async() => {
2024-10-16 22:33:27 +00:00
const html = await (await fetch(url)).json();
setEngines(html["Engines"]);
2024-01-29 03:29:45 +00:00
})(); }, []);
2024-10-20 17:40:09 +00:00
return ( <p dangerouslySetInnerHTML={{__html: engines}}/> );
2024-01-29 03:29:45 +00:00
};
export default EngineData;