upd | clearance

This commit is contained in:
2024-09-30 19:40:58 +01:00
parent 34dd2172c7
commit 46e55f6667
5 changed files with 25 additions and 19 deletions
+5 -5
View File
@@ -5,17 +5,17 @@ function App() {
const [data, setData] = useState('')
useEffect(() => {
fw.event.register('customCefEvent', ([test]) => {
setData(test)
return 'response from cef'
fw.event.register('customCefEvent', async ([test]) => {
setData(p => p + ' ' + test)
return 'from cef'
})
}, [])
return (
<>
<div style={{ width: '100%', color: 'white', textAlign: 'center' }}>
<h1>Hello World!</h1>
<h2>{data}</h2>
</>
</div>
)
}