Skip to content

Commit

Permalink
Fix typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiner Pöpping committed Nov 27, 2024
1 parent f914831 commit 0253635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/api-v5/page-ts-redux/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createRoot } from 'react-dom/client';
import AppWrapper from './components/AppWrapper';

try {
const root = createRoot(document.querySelector('#root'));
const root = createRoot(document.querySelector('#root') as Element);
root.render(<AppWrapper />);
} catch (e) {
console.error('Encountered error at `ReactDOM.render`: ', e);
Expand Down

0 comments on commit 0253635

Please sign in to comment.