import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './src/App';

// 使用React 18+的createRoot API
const rootElement = document.getElementById('root');
if (rootElement) {
  const root = ReactDOM.createRoot(rootElement);
  root.render(
    <React.StrictMode>
      <App />
    </React.StrictMode>
  );
}