B
B
bpGusar2019-03-19 10:59:56
JavaScript
bpGusar, 2019-03-19 10:59:56

Is it possible to increase application performance when using react-development in development?

When I use react-development when developing an application, the application slows down wildly, I read that this is done for some kind of wild logging of all actions so that I can track possible errors, but if I don’t need it?
Is it possible to somehow disable some unnecessary react-development functions so that the application does not slow down during development?
The drop in performance is just the wildest.
Approximately 80% of the production version.
For individual cases, this is very sensitive, for example, for an application with drag and drop, when there are a lot of elements and operations with the store occur many times, everything is fine on the production version, but everything is sad on react-development, so it’s stupidly impossible to do something.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2019-03-20
@Robur

If you are talking about React itself, this should not happen, the performance difference between development and production modes is minimal. Profile and figure out what exactly slows down - the problem is most likely somewhere in your code, look for it.
If you just want it to work and you're too lazy to figure it out, develop on a production version (NODE_ENV = "production".)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question