import React, { useState } from 'react'; import axios from 'axios'; import Section from './Section'; interface PropTypes { data?: string; url?: string; } const Markdown: React.FC = ({ data, url }) => { const [markdown, setMarkdown] = useState(data || ''); if (url) axios.get(url).then(response => setMarkdown(response.data)); return
}; export default Markdown;