CodeIgniter Forums

Full Version: How to use ReactJS with Codeigniter?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(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
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