Create example component that publishes an event which is listened to by another component