forked from Doenet/DoenetTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to use the new API for the root render call reqired in version 18
- Loading branch information
1 parent
90f0454
commit d097e5d
Showing
7 changed files
with
29 additions
and
30 deletions.
There are no files selected for viewing
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
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,12 +1,10 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { createRoot } from 'react-dom/client'; | ||
|
||
|
||
|
||
ReactDOM.render( | ||
const root = createRoot(document.getElementById('root')); | ||
root.render( | ||
<> | ||
test here | ||
</>, | ||
document.getElementById('root'), | ||
</> | ||
); | ||
|
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,19 +1,20 @@ | ||
import { MathJaxContext } from 'better-react-mathjax'; | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { mathjaxConfig } from '../../Core/utils/math.js'; | ||
|
||
import UIDocs from './uiDocs.jsx'; | ||
|
||
// import { initialize } from '../imports/courseInfo'; | ||
// initialize(); | ||
|
||
ReactDOM.render( | ||
const root = createRoot(document.getElementById('root')); | ||
root.render( | ||
<MathJaxContext | ||
version={2} | ||
config={mathjaxConfig} | ||
onStartup={(mathJax) => (mathJax.Hub.processSectionDelay = 0)} | ||
> | ||
<UIDocs /> | ||
</MathJaxContext> | ||
, document.getElementById('root')); | ||
); |
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