rage-framework-example/apps/cef/src/App.tsx

21 lines
339 B
TypeScript
Raw Normal View History

2024-06-13 20:12:40 +00:00
import { fw } from 'rage-fw-cef'
import { useEffect } from 'react'
2024-06-12 22:59:21 +00:00
function App() {
2024-06-13 20:12:40 +00:00
useEffect(() => {
fw.event.register('customCefEvent', ([test]) => {
console.log(test)
return ''
})
}, [])
return (
<>
<h1>Hello World!</h1>
</>
)
2024-06-12 22:59:21 +00:00
}
export default App