Welcome Guest, Not a member yet? Register   Sign In
How to use ReactJS with Codeigniter?
#1

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
Reply
#2

(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
Reply
#3

(This post was last modified: 05-13-2020, 01:56 PM by FranciscoJinesh. Edit Reason: new version of Codeigniter )

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB