mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 22:54:11 +00:00
Update dependency 3 (#5344)
* update react react-dom prop-types * update seafile-editor version * install deep-copy denpendency * update router version * repair focus bug * optimize code * optimize code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import PropTypes from 'prop-types';
|
||||
import toaster from './components/toast';
|
||||
import { Utils } from './utils/utils';
|
||||
@@ -161,7 +161,5 @@ class FileContent extends React.Component {
|
||||
|
||||
FileContent.propTypes = propTypes;
|
||||
|
||||
ReactDOM.render (
|
||||
<ViewFileText />,
|
||||
document.getElementById('wrapper')
|
||||
);
|
||||
const root = createRoot(document.getElementById('wrapper'));
|
||||
root.render(<ViewFileText />);
|
||||
|
Reference in New Issue
Block a user