Yii2 as backend service API (ajax), and react as view in yii2 in 1 bundle + use native php/yii2 navigation
- JSX file dir in "@app/react/{following with controller and action dir}"
- Develompent Build in "@app/chunk"
- Build file dir in "@web/build"
composer create-project defyma/yii2-react-basic <folder>
then:
$ cd <folder>
$ npm install
$ npm start
- clone this repo
- composer install
- npm install
- npm start
npm run build
This template use native php/yii2 navigation 1 view = 1 react-dom, if you expert on react you can custom with react-router, redux, etc..