Skip to content

Commit

Permalink
Move to JSX classic
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Mar 31, 2024
1 parent 3e79934 commit ff05a60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/pages/src/app/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback } from 'react';
import React, { useCallback } from 'react';
import { useMemoMap } from 'use-memo-map';

const App = () => {
Expand Down
8 changes: 6 additions & 2 deletions packages/pages/src/app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { createRoot } from 'react-dom/client';
import React from 'react';
// eslint-disable-next-line react/no-deprecated
import { render } from 'react-dom';
// import { createRoot } from 'react-dom/client';

import App from './App';

const rootElement = document.getElementById('root');

rootElement && createRoot(rootElement).render(<App />);
// rootElement && createRoot(rootElement).render(<App />);
rootElement && render(<App />, rootElement);

0 comments on commit ff05a60

Please sign in to comment.