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

13 lines
388 B
JavaScript
Raw Permalink Normal View History

2024-10-20 17:40:09 +00:00
import url from './engines.xls';
import React, { useEffect, useState } from 'react';
const BindingData = () => {
const [binding, setBinding] = useState("");
useEffect(() => { (async() => {
const html = await (await fetch(url)).json();
setBinding(html["Bindings"]);
})(); }, []);
return ( <p dangerouslySetInnerHTML={{__html: binding}}/> );
};
export default BindingData;