Coder Social home page Coder Social logo

Implement React hot loading about grouptodo HOT 4 CLOSED

fokoid avatar fokoid commented on August 31, 2024
Implement React hot loading

from grouptodo.

Comments (4)

muyaszed avatar muyaszed commented on August 31, 2024

Hi, I would like to put a note on what is being done here. Basically there are 2 item that were installed and configured.

  1. Webpack Hot Module replacement(HMR)
  • This was done by utilising Webpack-dev-server which will change how we build and run the webserver of the app.

  • HMR will automatically update the latest version of all component without refreshing the browser whenever any component is edited and save. However, if only using this, the any latest state will not be maintained whenever there is an update. To maintain the state we will require React Hot Loader.

  1. React Hot Loader
  • This will eventually help to maintain any current states after HMR automatically update during any component changes. For this to work a new entry point is created.

The branch is ready for review and merge to the master #9

from grouptodo.

fokoid avatar fokoid commented on August 31, 2024

So as I understand it the hot loader allows preserving React state between updates. But is this for production as well or just during development?

I guess point 1 is just for development. If so, should we continue to use the old build process during production?

from grouptodo.

muyaszed avatar muyaszed commented on August 31, 2024

Yes, basically that is what it is and it is for development only. As for the build process I am not very sure on how react is build during production, let say using heroku for example. anyways, i think it should be fine if the old process is used.

from grouptodo.

fokoid avatar fokoid commented on August 31, 2024

Fixed with #9.

from grouptodo.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.