Skip to content

Commit

Permalink
#91 fix: HelmetProvider 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
MyungJiwoo committed Oct 5, 2024
1 parent 9866a1e commit c78995c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ import App from './App';
import reportWebVitals from './reportWebVitals';
import GlobalStyle from './styles/GlobalStyle';
import ReactGA from 'react-ga4';
import { HelmetProvider } from 'react-helmet-async';

if (process.env.REACT_APP_GOOGLE_ANALYTICS_TRAKING_ID) {
ReactGA.initialize(process.env.REACT_APP_GOOGLE_ANALYTICS_TRAKING_ID);
}

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
<BrowserRouter>
<GlobalStyle />
<App />
</BrowserRouter>
<HelmetProvider>
<BrowserRouter>
<GlobalStyle />
<App />
</BrowserRouter>
</HelmetProvider>
);

// If you want to start measuring performance in your app, pass a function
Expand Down

0 comments on commit c78995c

Please sign in to comment.