title: conditionnally render prop in html
body: <p>Basically I am trying to set the closeModal prop when offline to true and else to closeModal. How do I achieve this ? I am using react-detect-offline and ant design.</p>
  <pre><code>        &lt;Detector
                  render={({ offline }) =&gt; (
                      &lt;ModalSelectMenu
                      {offline ? closeModal = 'true' : closeModal = { closeModal }}
                          isModalVisible={isModalVisible}
                          history={history}   
                      /&gt;
                  )}
              /&gt;
  </code></pre>