Loading…

How can we build React in Production mode?

We can utilize Webpack's DefinePlugin strategy to set NODE_ENV to production. This will remove things like propType approval and other notices. It is a good idea to reduce your code because React utilizes Uglify's dead-code end to remove advancement just code and remarks.

Suggest An Answer

No suggestions avaliable!

Latest post from React js interview questions

Ask Question