I recommend using browser-sync for the simple serving of the test index.html file in test-client
. You can install that using npm install -g browser-sync
.
npm install
- To run the react app run
npm run dev
- To build and run the app as a widget run
npm start
and you will see the widget is served viahttp://localhost:3000/static/index.js
and serve the basic html test-client on port 3001.