score:1

Accepted answer
import React, { PropTypes } from 'react';
import { Link } from 'react-router';

export default React.createClass({
    contextTypes: {
        router: React.PropTypes.object.isRequired
    },
    render() {
        return (
            <div>
                <div onClick={ this.onRegister }>Reg Button</div>
                <Link to='/register' >
                    Register Link
                </Link>
            </div>
        )
    },
    onRegister() {
        console.log('register button');
        this.context.router.push('/register');
    }
});

Related Query

More Query from same tag