CodeIgniter Forums
How to use ReactJS with Codeigniter? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: How to use ReactJS with Codeigniter? (/showthread.php?tid=69456)



How to use ReactJS with Codeigniter? - mahesh2150 - 11-26-2017

Hi,

I want to implement reactjs view in codeigniter.
I can't find a good tutorial how to use reactjs with codeigniter

When i issue, npm start, the view is started in http://localhost:8080
But php coding is loaded in http://localhost.

These two are running in different ports. How can i use these reactjs view now in codeigniter? 
Please guide

Thanks


RE: How to use ReactJS with Codeigniter? - Sunesis - 03-06-2019

(11-26-2017, 11:51 PM)mahesh2150 Wrote: Hi,

I want to implement reactjs view in codeigniter.
I can't find a good tutorial how to use reactjs with codeigniter

When i issue, npm start, the view is started in http://localhost:8080
But php coding is loaded in http://localhost.

These two are running in different ports. How can i use these reactjs view now in codeigniter? 
Please guide

Thanks

Create the react components and add them in your js file, then embed them within  your php view


RE: How to use ReactJS with Codeigniter? - FranciscoJinesh - 05-06-2019

hi guys i just create simple React Frontend  scaffolding for codeigniter and other framework...
Github Repository:Github Repository

how to use
==========
1: Clone/download this Repository github

2: run command npm install && npm run watch

3: change the .htaccess file RewriteBase

4: that's it Smile Big Grin 

note: this repository uses codeigniter 3.1.11...

if you want other version of codeigniter, download and replace Application and system folders with newer ones

node js is required  ... download it from nodejs



ok guy  have a nice day ..... happy coding with CodeIgniter Heart Heart Heart