import React, { useEffect, useState } from 'react';
export default function Fetch(props) {
    const [data, setData] = useState('no response yet');
    useEffect(() => {
        fetch(props.url).then(res => res.text()).then(setData);
    }, [props.url]);
    return <p>{data}</p>;
}
//# sourceMappingURL=Fetch.js.map