ShakeDeal Interview Question

Why do we use ReactJS over Venilla JS?

Interview Answer

Anonymous

Apr 17, 2024

I explained how Easy to scale and manage the state. That's hard on VenilaJS. The advantage of using Vanilla JS is much more efficient than React. The interviewer assumes Vanilla JS is less efficient than React because document.getElementById().innerHTML will also affect the parent element which is totally wrong. I explained that ReactJS is limited by APIs of JS if something is possible by React it should can able to implement via vanilla js.