Seperate view and controller in react example.