Update README.md
This commit is contained in:
parent
177c3ea554
commit
36edd07f2e
|
@ -61,6 +61,17 @@ npm start
|
|||
- If you want to use a client on another computer/network, make sure you publish your server on an HTTPS connection.
|
||||
You can use a service like [ngrok](https://ngrok.com/) for that.
|
||||
|
||||
#### Developing in React
|
||||
|
||||
React is gradually being introduced to the frontend.
|
||||
|
||||
Example - How to develop the `<Footer/>` React component:
|
||||
|
||||
- In `notsupported.html`, change "production.min.js" to "development.js". This will give you unminified React warnings / errors.
|
||||
- In the terminal, run `npx babel --watch src --out-dir ./public/react --presets react-app/prod`. This will compile your React code in the `src` directory to vanilla JavaScript in the `public/react` directory
|
||||
- Open `src/Footer/index` and make a change. Note the compiled file also updates.
|
||||
- To see your change, start the server and navigate to `localhost:3000`. Note: Hot reloading is not currently enabled.
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull Requests are welcome!
|
||||
|
|
Loading…
Reference in New Issue