Make your store available via React context by using Provider from @re-frame/preact at the top of your application. This will allow you to access subscriptions and dispatch events within the React tree.
importReactfrom"react"import{useDispatch}from"@re-frame/react"constMyComponent=()=>{constdispatch=useDispatch()return(<buttononClick={()=>dispatch({id: "my-event"})}>
Click me to trigger "my-event"
</button>)}