I am importing a class called MapContainer from maps.js and displaying my div files in the App.js. is there a way to change the google api wrapper along side with the api key to work directly in the html tags.
import { GoogleApiWrapper } from 'google-maps-react';
<div class="content">
GoogleApiWrapper({
apiKey: 'AIzaSyDkXk3MuVjovvaVAnl2wt2j_2ES-INLJ0s'
})(MapContainer);
</div>
I tried several other methods that require to change the code of app.js and maps.js and yet it doesnt work. Hence why I went back hopefully fix the formatting for the div.
ps. the MapContainer is the google map renderer but requires the API key along side it to generate the map.
Try using
React.createElement: