Skip to content

Commit

Permalink
website: uppgrade to react 18
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 25, 2023
1 parent 5b71d52 commit e76a5db
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions website/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const App: React.FC = () => {
<Markdown
style={{ paddingTop: 25, maxWidth: 680, margin: '0 auto' }}
source={MDStr.replace(/([\s\S]*)<!--dividing-->/, '')}
wrapperElement={{
"data-color-mode": "light"
}}
/>
</div>
);
Expand Down
7 changes: 4 additions & 3 deletions website/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import App from './App';

ReactDOM.render(<App />, document.getElementById('root'));
const container = document.getElementById('root');
const root = createRoot(container!);
root.render(<App />);

0 comments on commit e76a5db

Please sign in to comment.