Using React in a PHP framework. How do I go about routing?


I have a website written using Kohana Framework. The way I've been doing things in my controller is like so:

public function action_about() {   $this->template->body = View::factory('main');   $this->template->body->set('main' 'about');  }  

I've gone through a React tutorial where react router is used. To go from page to page I had a function like so:

goToAbout(event) {   event.preventDefault();   this.context.router.transitionTo('about');  }  

The way I understand it