Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion neutralino.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"projectPath": "/react-src/",
"initCommand": "npm install",
"devCommand": "npm run start",
"buildCommand": "npm run build"
"buildCommand": "npm run build",
"waitTimeout": 20000
}
}
}
9 changes: 5 additions & 4 deletions react-src/src/index.js
Original file line number Diff line number Diff line change
@@ -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(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
</React.StrictMode>
);

init(); // Add this function call