jfrye jfrye - 1 year ago 776
Javascript Question

React-router: Using <Link> as clickable data table row

I'm new to using ReactJS and react-router. I want a clickable table row and something like the following setup:

<Link to=“#”>

but I know you can't put
tags between the
tags. How else can I accomplish this?

PS: I prefer not to use jQuery if possible.

Answer Source

Why don't you just use onClick?

var ReactTable = React.createClass({
  handleClick: function(e) {
  render: function() {
              <th>Full Detail</th>
              <tr onClick={this.handleClick.bind(this)}>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download