import { useState, useEffect, useRef, useCallback, Component } from 'react'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; import './index.css'; // ── Error Boundary ──────────────────────────────────────────── class ErrorBoundary extends Component { constructor(props) { super(props); this.state = { hasError: false, error: null }; } static getDerivedStateFromError(error) { return { hasError: true, error }; } componentDidCatch(error, info) { console.error('[DeepMed-AI ErrorBoundary]', error, info); } render() { if (this.state.hasError) { return (
Vui lòng tải lại trang để tiếp tục.
Trợ lý y khoa thông minh hỗ trợ tra cứu phác đồ, thuốc và các hướng dẫn lâm sàng.