I'm trying to integrate CARTO map (created using CARTO builder) with react.js.
I'm stuck at using carto.js via cartoclient:
this.cartoClient = new carto.Client({ apiKey: 'key', username: 'user' });
Official CARTO documentation mentions that it's possible to integrate the map using viz.json
file, but there are no reference to any working example of that.
This example is creating map from scratch and this one is using plain html with scripts (no react.js support)
Are there any suggestions?