We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5b71d52 commit e76a5dbCopy full SHA for e76a5db
website/App.tsx
@@ -21,6 +21,9 @@ const App: React.FC = () => {
21
<Markdown
22
style={{ paddingTop: 25, maxWidth: 680, margin: '0 auto' }}
23
source={MDStr.replace(/([\s\S]*)<!--dividing-->/, '')}
24
+ wrapperElement={{
25
+ "data-color-mode": "light"
26
+ }}
27
/>
28
</div>
29
);
website/index.tsx
@@ -1,5 +1,6 @@
1
-import React from 'react';
2
-import ReactDOM from 'react-dom';
+import { createRoot } from 'react-dom/client';
3
import App from './App';
4
5
-ReactDOM.render(<App />, document.getElementById('root'));
+const container = document.getElementById('root');
+const root = createRoot(container!);
6
+root.render(<App />);
0 commit comments