📜  React.js:是否可以将 React 组件转换为 HTML DOM? - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:28.886000             🧑  作者: Mango

代码示例1
createMarker: function() {

  /** Some other lines of code */

  _this = this;

  google.maps.event.addListener(marker, 'click', function() {

    var div = document.createElement('div');
    ReactDOM.render( _this._renderInfoWindow(place), div );
    infowindow.setContent( div );
    infowindow.open(map, this);

  });

},