title: react-leaflet-search component not rendering
body: <p>When I am trying to render react-leaflet-search, I get an error.  When I am trying to use the solution for that error, react is compiling but component does not seem to be rendering.  </p>
  
  <p>I tried their example <a href="https://github.com/tumerorkun/react-leaflet-search/blob/master/examples/components/simple.js" rel="nofollow noreferrer">simple search</a>. Getting the same error </p>
  
  <pre><code>TypeError: Cannot read property 'map' of undefined
  new ReactLeafletSearch
  C:/Users/project/node_modules/react-leaflet-search/lib/React-Leaflet-Search.js:106
    103 |   });
    104 |   _this.SearchInfo = null; // searched lat,lng or response from provider
    105 | 
  &gt; 106 |   _this.map = context.map || props.leaflet.map;
        | ^  107 |   return _this;
    108 | }
    109 | 
  </code></pre>
  
  <p>I tried this solution (from the react-leaflet-search page)</p>
  
  <pre><code>const searchComponent = props =&gt; (&lt;ReactLeafletSearch position="topleft" /&gt;);
  </code></pre>
  
  <p>i even tried this:</p>
  
  <pre><code>const searchComponent = withLeaflet(ReactLeafletSearch);
  </code></pre>
  
  <p>these lines bypass the "error" but no component seems to be rendering.</p>
  
  <p>my react-leaflet Map component is loading, the zoom +/- buttons too, but not the search.</p>
  
  <p>this is the code that i am using
  <a href="https://github.com/PaulLeCam/react-leaflet/blob/master/example/components/simple.js" rel="nofollow noreferrer">map example</a>
  ofcourse i am also doing:</p>
  
  <pre><code>import { ReactLeafletSearch } from "react-leaflet-search";
  </code></pre>
  
  <p>the only difference is that after line 31 i add my component.</p>
  
  <pre><code>31. &lt;/Marker&gt;
  32. &lt;searchComponent&gt;&lt;/searchComponent&gt;
  33. &lt;/Map&gt;
  </code></pre>
  
  <p>and nothing seems to be rendering at all.</p>
  
  <p>The result I would expect is a search component like the one showing in this
  <a href="https://tumerorkun.github.io/react-leaflet-v2-tests/" rel="nofollow noreferrer"> working example </a></p>