Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { MessageBusClientApi } from "@kogito-tooling/envelope-bus/dist/api";
// ...
export class PingPongReactImplFactory implements PingPongFactory {
public create(initArgs: PingPongInitArgs, channelApi: MessageBusClientApi<PingPongChannelApi>) {
const ref = React.createRef<PingPongApi>();
const pingPongView: PingPong = {
reactComponent: () => <PingPongReactImpl initArgs={initArgs} channelApi={channelApi} ref={ref} />,
return pingPongView;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment