How does a react project call nw.js 's api

The

project is that the main form created by nw.js is a borderless webview, and the ultimate goal is to make an installation package;
because the main form is borderless, so minimizing and maximizing and closing the window need to be realized in web, web is built through create-react-app;
now the problem is how to call nw.js window-related api in web?

Jun.10,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3550e-2b7ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3550e-2b7ce.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?