title: React-router-dom : Is it possible to use Link without routing the user to another page?
body: <p>I have this table:    </p>
  
  <pre><code>&lt;Table hover bordered striped responsive size="sm"&gt;
                &lt;thead&gt;
                  &lt;tr&gt;
                    &lt;th&gt;Nom du fichier&lt;/th&gt;
                    &lt;th&gt;Date et heure d'ajout&lt;/th&gt;
                  &lt;/tr&gt;
                &lt;/thead&gt;
                &lt;tbody&gt;
                  {this.state.fichierJointsInformation.map(
                    (operationSavInformation, i) =&gt; {
                      return (
                        &lt;tr key={i}&gt;
                          &lt;td&gt;
                            &lt;Link
                              to={""}
                              onClick={this.onFichierJointLinkClicked}
                            &gt;
                              {operationSavInformation.nomFichierOriginal}
                            &lt;/Link&gt;
                          &lt;/td&gt;
                          &lt;td&gt;{operationSavInformation.createdAt}&lt;/td&gt;
                        &lt;/tr&gt;
                      );
                    }
                  )}
                &lt;/tbody&gt;
              &lt;/Table&gt;
  </code></pre>
  
  <p>It is rendered like this:<br>
  <a href="https://i.stack.imgur.com/hDORs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hDORs.png" alt="enter image description here"></a></p>
  
  <p><strong>What I am trying to implement:</strong> When the user clicks on any element of the first column, the associated file gets downloaded.<br>
  So the <code>onFichierJointLinkClicked</code> onClick listener, will take care of the API request and everything else.  </p>
  
  <pre><code>&lt;Link
                          to={""}
                          onClick={this.onFichierJointLinkClicked}
                        &gt;
                          {operationSavInformation.nomFichierOriginal}
                        &lt;/Link&gt;
  </code></pre>
  
  <p><strong>MY PROBLEM:</strong> The <code>to</code> prop in <em>LINK</em> is required. However, I don't want to route the user to any other page. I just want the <code>onFichierJointLinkClicked</code> to be triggered.  </p>
  
  <p>If I remove the <code>to</code> prop, I get this error obviously:  </p>
  
  <pre><code>index.js:1 Warning: Failed prop type: The prop `to` is marked as required in `Link`, but its value is `undefined`.
  </code></pre>