title: How to integrate Reactjs frontend with php codeigniter application on apache server?
body: <p>The CodeIgniter application was developed much earlier without plans to integrate ReactJS at that time. A later requirement was added to integrate another ReactJS project with this backend and replace the current frontend (views).</p>
  
  <p>The CodeIgniter application is not done as a RESTful API. The .php view files could not be replaced with .js files of the reactjs app as the server is Apache.
  Running a nodejs server would not render the CodeIgniter views.</p>
  
  <p>Bootstrap, jquery, and simple javascript can be included within the view of the CodeIgniter application. But is it possible to replace the PHP view files in CodeIgniter with javascript files? </p>