I am new to lightning and i just dont get renderer. Why do we use it?
Can please anyone tell me with example. I get the part that salesforce automatically renders if some data is changed. But why use after that?
I am new to lightning and i just dont get renderer. Why do we use it?
Can please anyone tell me with example. I get the part that salesforce automatically renders if some data is changed. But why use after that?
Best Answer
We have dozens of components and none of them have a renderer. Most of the time you don't need to have one so don't concern yourself until you find a reason to add one. And in my experience, when you think you have a reason, an alternative solution might well be cleaner: best to leave the DOM manipulation to the framework and work with components not DOM elements.
The documentation says: