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