Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
import { usePublish } from ‘@ombori/ga-messaging’;

const App = () => {

   ...

   const publish = usePublish();
   const onClick = useCallback(() => {
     publish({type: ‘Hello.There’, some: ‘data here’}); 
   }, [broadcastpublish]);

  return <button onClick={onClick} />
};

...