Skip to content

Commit

Permalink
Added StrictMode
Browse files Browse the repository at this point in the history
  • Loading branch information
DercilioFontes committed Dec 29, 2022
1 parent 87b697a commit 5a79c73
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ module.exports = {
printWidth: 100,
tabWidth: 2,
singleQuote: true,
arrowParens: 'avoid',
trailingComma: 'none'
};
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Routes, Route, Navigate } from 'react-router-dom';
import { IntlProvider } from 'react-intl';
import { CustomProvider } from 'rsuite';
import enUS from 'rsuite/locales/en_GB';
import enUS from 'rsuite/locales/en_US';
import locales from './locales';
import Frame from './components/Frame';
import HistogramPage from './pages/histogram';
Expand Down
10 changes: 5 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import App from './App';

import './styles/index.less';

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const root = ReactDOM.createRoot(document.getElementById('root')!);

root.render(
<BrowserRouter>
<App />
</BrowserRouter>
<React.StrictMode>
<BrowserRouter>
<App />
</BrowserRouter>
</React.StrictMode>
);

0 comments on commit 5a79c73

Please sign in to comment.