use create-react-app with php index

前端 未结 1 1365
旧巷少年郎
旧巷少年郎 2021-01-03 13:38

i want to start new react project using great create-react-app tool, but i need to serve app using php to allow me to fetch some dynamic data and configuration and feed it t

相关标签:
1条回答
  • 2021-01-03 14:01

    Use below code:

    1. Open your application folder in command line.
    2. Write below code with your react config file. (E.g: development.config.js)

    Code

    webpack-dev-server --progress --inline --hot --port 8080 --config reactconfig/development.config.js
    

    OR

    npm start
    
    0 讨论(0)
提交回复
热议问题