Skip to content

Commit

Permalink
refactor: simplify StrictMode wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillzyusko committed Sep 30, 2024
1 parent 9bc4bc1 commit fa3c56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ LogBox.ignoreLogs([

const fill = {flex: 1};

const StrictModeWrapper = CONFIG.USE_REACT_STRICT_MODE_IN_DEV ? React.StrictMode : ({children}: {children: React.ReactElement}) => children;
const StrictModeWrapper = CONFIG.USE_REACT_STRICT_MODE_IN_DEV ? React.StrictMode : React.Fragment;

function App({url}: AppProps) {
useDefaultDragAndDrop();
Expand Down

0 comments on commit fa3c56a

Please sign in to comment.