title: React-router: Passing data through routes
body: <p>I'm trying to figure out the best way to pass data through my routes. I know I can use params but there are certain types of data that don't belong in params. </p>
  
  <p>For example: I have an index page that displays a list of applications. Each application has a button next to it which will route you to the view for that application.</p>
  
  <p>I want to pass the application itself to the Application handler. However, it doesn't make sense to pass the entire application through params. Though it does make sense to pass the application identifier to params (i.e. :id or :name)</p>
  
  <p>So the way I think I should be doing this is pass the application identifier to params, then in the Application component search my ApplicationStore for the appropriate application given the identifier. </p>
  
  <p>Though, wouldn't it be easier and faster to pass the application itself? Is there a way to do this. Is there a reason not to do this?</p>
  
  <p>Here is some code:</p>
  
  <p><code>&lt;Link to="showApplication" params={{name: application.name}}&gt;View&lt;/Link&gt;</code></p>
  
  <p>or</p>
  
  <p><code>&lt;Link to="showApplication" params={{application: application}}&gt;View&lt;/Link&gt;</code></p>
  
  <p>Thanks in advance!</p>