-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARTESCA-13969 // Migration to React 18
ARTESCA-13969 // Migration to React 18 refactor: update NotificationCenter styles and improve test assertions refactor: migrate to React 18's createRoot for rendering refactor: implement external store for WebFingers context and update related hooks refactor: remove console logs and simplify state update logic in WebFingersStore refactor: update dependencies to React 18 and related packages
- Loading branch information
1 parent
14a55a3
commit f08ccc2
Showing
9 changed files
with
15,015 additions
and
541 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import App, { ShellTypes } from './FederatedApp'; | ||
import { NotificationCenterContextType } from './NotificationCenterProvider'; | ||
import { History } from 'history'; | ||
import { | ||
BuildtimeWebFinger, | ||
RuntimeWebFinger, | ||
} from './initFederation/ConfigurationProviders'; | ||
import { createRoot } from 'react-dom/client'; | ||
import App from './FederatedApp'; | ||
|
||
ReactDOM.render(<App />, document.getElementById('app')); | ||
const rootElement = document.getElementById('app'); | ||
|
||
if (rootElement) { | ||
const root = createRoot(rootElement); | ||
root.render(<App />); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.