A
A
Alex Polyakh2017-09-27 10:09:40
React
Alex Polyakh, 2017-09-27 10:09:40

Does it make sense to use the "babel-plugin-transform-react-constant-elements" plugin for webpack/reactJS?

As I understand from this site, https://babeljs.io/docs/plugins/transform-react-co... improves development performance.
I don't quite understand what the benefits are. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danakt Frost, 2017-09-27
@PolyakhAleksandr

Well, as I understand from the description, the thing will be useful if the project has a lot of so-called. "constant" elements that do not change during the entire life cycle. This allows you to increase performance during re-rendering: a new element will not be created each time, but the one already created by reference will simply be returned - it will still be the same.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question