google-map-react/src/google_map_map.js
Ivan Starkov 07368e23ad Move 2 yarn, add prettier, update linters (#360)
* Move 2 yarn, add prettier, update linters

* Fix linting error
2017-04-11 00:47:54 +03:00

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} />;
}
}