sendCommand in react component

Hi
Can any one help me to figure out how I can use sendCommand using the react component.
By using this:

onApiReady :{ 
  (externalApi) => {
      externalApi.sendCommand('object_rendered','some json data');
  } 
}
<JitsiMeeting
                        domain = { YOUR_DOMAIN }
                        roomName = "PleaseUseAGoodRoomName"
                        configOverwrite = {
                            {
                                apiLogLevels:['error'],
                                startWithAudioMuted: false,
                                disableModeratorIndicator: true,
                                startScreenSharing: true,
                                disablePolls    : true,
                                disableSelfViewSettings    : true,
                                enableEmailInStats: false,
                                breakoutRooms : {hideAddRoomButton:true},
                                toolbarButtons:[
                                    'camera',
                                    'chat',
                                    'filmstrip',
                                    'fullscreen',
                                    'microphone',
                                    'participants-pane',
                                    'profile',
                                    'settings',
                                    'tileview',
                                    'toggle-camera',
                                    'videoquality',
                                ],
                                defaultLogoUrl:'',
                                notifications:[]
                            }
                        }
                        interfaceConfigOverwrite = {
                            {
                                DISABLE_JOIN_LEAVE_NOTIFICATIONS: true,
                                HIDE_DEEP_LINKING_LOGO:true,
                                HIDE_INVITE_MORE_HEADER:true,
                                MOBILE_APP_PROMO:false,
                                SHOW_JITSI_WATERMARK:false,
                                DEFAULT_LOGO_URL:''
                            }
                        }
                        userInfo = {
                            {
                                displayName: ''
                            }
                        }
                        onApiReady = { 
                            (externalApi) => {
                                setJitsiApi(externalApi);
                            } 
                        }
                        getIFrameRef = { 
                            (iframeRef) => { 
                                iframeRef.style.height = '400px'; 
                            } 
                        }
                    />

but this is not working.
Please correct me if I am doing it a wrong way.
Thanks

What are you trying to accomplish? The command you showed doesn’t exist, so nothing should happen indeed.

I am trying to integrate konva react with it i.e. Getting started with react and canvas via Konva | Konva - JavaScript 2d canvas library to accomplish whiteboard.

You are mixing different api. Sendcommand is from lib-jitsi-meet while you are using that looks like iframeAPI …