1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

refactor(app): wrap react with StrictMode [EE-2023] (#6075)

This commit is contained in:
Chaim Lev-Ari 2021-11-16 18:33:51 +02:00 committed by GitHub
parent bcaf20caca
commit 5bd157f8fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 3 deletions

View file

@ -0,0 +1,10 @@
import { UIRouterContextComponent } from '@uirouter/react-hybrid';
import { PropsWithChildren, StrictMode } from 'react';
export function RootProvider({ children }: PropsWithChildren<unknown>) {
return (
<StrictMode>
<UIRouterContextComponent>{children}</UIRouterContextComponent>
</StrictMode>
);
}