mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
23 lines
419 B
JavaScript
23 lines
419 B
JavaScript
import React, { Component } from 'react';
|
|
|
|
const style = {
|
|
width: '100%',
|
|
height: '100%',
|
|
left: 0,
|
|
top: 0,
|
|
margin: 0,
|
|
padding: 0,
|
|
position: 'absolute',
|
|
};
|
|
|
|
export default class GoogleMapMap extends Component {
|
|
shouldComponentUpdate() {
|
|
return false; // disable react on this div
|
|
}
|
|
|
|
render() {
|
|
const { registerChild } = this.props;
|
|
return <div ref={registerChild} style={style} />;
|
|
}
|
|
}
|