How to use ReactJS with Codeigniter? |
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, Create the react components and add them in your js file, then embed them within your php view
05-06-2019, 11:10 AM
(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 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 |
Welcome Guest, Not a member yet? Register Sign In |