Goal - Trying to fetch Lat, long and address based on the user click on the mapbox component, but not able to get the onclick function work as intended
The built-in map component doesn't support click handlers at the moment but a number of people have set up a custom component to display maps. Mapbox themselves have a nice quickstart here that you can explore. There are also a couple of examples folks have posted on the forums that include the full custom component code they're using.
Hopefully that's helpful, but let me know if you have any questions getting set up! Otherwise, we can let you know here if we do include click handlers for the built-in component