search

Home  >  Q&A  >  body text

javascript - How to build a react development environment under windows to implement the react version of the website

Recently I want to make a mobile version of my website using react. The current website is a Windows server, iis7 is used as web service, the back-end code is PHP, and the API has been written.
I read a lot of react articles and I’m confused. It’s too confusing.
Following the tutorial on the official website, I used create react app to run a demo on my mac computer.
The question now is how to use this create react app on windows and how to integrate it with the website.
I hope I can do this, put the react code in a directory under the root directory of the website, and then enter this directory to run the react code directly. Now I don’t know how to start at all, so I’ll ask an experienced driver to lead the way.

过去多啦不再A梦过去多啦不再A梦2756 days ago778

reply all(1)I'll reply

  • 某草草

    某草草2017-06-28 09:27:23

    After development, use npm run build to package it. There is a build folder in the same directory, and the index.html in it is, just run it directly,

    (create-react-app)[https://github.com/facebookin...

    reply
    0
  • Cancelreply