Цей коміт міститься в:
rilaxik committed 2024-09-30 19:40:58 +01:00
1 джерело 34dd2172c7
коміт 46e55f6667
5 files changed
+25 -19

No files matched your search

+5 -5
Переглянути файл
@@ -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>
)
}