diff --git a/neutralino.config.json b/neutralino.config.json index fa25caf..d1602a0 100644 --- a/neutralino.config.json +++ b/neutralino.config.json @@ -31,7 +31,8 @@ "projectPath": "/react-src/", "initCommand": "npm install", "devCommand": "npm run start", - "buildCommand": "npm run build" + "buildCommand": "npm run build", + "waitTimeout": 20000 } } } diff --git a/react-src/src/index.js b/react-src/src/index.js index 63b3c8d..951cc6d 100644 --- a/react-src/src/index.js +++ b/react-src/src/index.js @@ -1,16 +1,17 @@ import React from 'react'; -import ReactDOM from 'react-dom'; +import { createRoot } from 'react-dom/client'; import './index.css'; import App from './App'; // Import init function from "@neutralinojs/lib" import { init } from "@neutralinojs/lib" -ReactDOM.render( +const container = document.getElementById('root'); +const root = createRoot(container); +root.render( - , - document.getElementById('root') + ); init(); // Add this function call \ No newline at end of file