forked from sheetjs/docs.sheetjs.com
13 lines
385 B
JavaScript
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; |