title: react-leaflet: adding a TopoJSON layer
body: <p>I just started using the react-leaflet library and got a map to load with a geoJSON layer, however I would like to use a TopoJSON layer instead.</p>
  
  <p>I know that it is possible with pure Leaflet like this: <a href="https://gist.github.com/rclark/5779673/" rel="nofollow noreferrer">https://gist.github.com/rclark/5779673/</a>.</p>
  
  <p>But how would I go about doing this with React-Leaflet?</p>
  
  <p><b>Edit</b></p>
  
  <pre><code>class MapViz extends React.Component {
  
      getStyle() {...};
  
      render() {
          const position = [x,y];
          var geoData = topojson.feature(test_topo,test_topo.objects).geometries;
          return (
              &lt;Map id="my-map" center={position} zoom={10.2}&gt;
                  &lt;TileLayer ... /&gt;
                  &lt;GeoJSON data={geoData} style={this.getStyle} /&gt;
              &lt;/Map&gt;
          )
      }
  }
  </code></pre>