import { fw } from '@entityseven/rage-fw-browser' import { useEffect, useState } from 'react' function App() { const [data, setData] = useState('initial') useEffect(() => { fw.event.register('customBrowserEvent', async message => { setData(p => p + ' | ' + message) const response = await fw.event.triggerServer('customServerEvent', [ 'hello from browser', ]) setData(p => p + ' | ' + response) return 'response from browser' }) }, []) return (