Hi Omkar,
Normally, loading Mendix objects into a React widget is done in one of two ways:. Did you try the below?
If you use the ‘pluggable-widget-tools’ by which a React widget is advised by Mendix to be built via Visual Studio Code, then setting up your widget XML like this will generate the typings to use the Mendix objects in the props. You could use my Google Maps Custom Marker (React) widget to check this. There are proper examples in the code.