Is there any help online documentation for mapcomponents react js ?
If you're asking how to embed the new SDK components in a React component, the official docs go over how to render them and pass in data to their attributes. Once you hit a wall you can post about the specific component/attribute issue you're having and get focused help from there.
I created a separate component ActionBar.tsx , Which includes, Layers, Legend and basemap Gallerty
I'm thinking it should be mapRef.current instead of just mapRef.
I tried everything with no luck
Can you post the entire code for your component?
Since you are using React 19 and if this is a new app, I’d recommend not using the calcite-components-react wrapper.
If you have a github repo, can take a look, but our samples don't use the react wrappers
https://github.com/Esri/jsapi-resources/tree/main/component-samples/map-and-charts-components-react