Archived
upd | clearance
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user