DEV Community

Cover image for My Shift from Vanilla JS to React
Yong S Choi
Yong S Choi

Posted on

My Shift from Vanilla JS to React

Hello everyone! I've started learning React, a JavaScript library, after working with Vanilla JavaScript at the Codeup(coding bootcamp in Dallas), I want to share why I think this switch is a big step forward for me.

With Vanilla JavaScript, I often had to write the same code for similar functions. React's reusable components have changed this. I can now write a component once and use it multiple times. This reduces errors and makes the code easier to handle.

React's virtual DOM is very attractive feature. In normal JavaScript, each UI change updates the entire DOM, which can slow down larger applications. React uses a virtual DOM to speed this up. It updates changes in the virtual DOM first, then only updates those parts in the real DOM. This makes apps run faster.

Lastly, React's large community has been a great help. It offers many resources and tutorials, making it easier to learn than Vanilla JS.

In short, learning React is my next step. It offers tools that make coding more efficient than with Vanilla JS. If you're considering it, I recommend trying React to see these benefits yourself. Keep learning and adapting to grow in this field.

Top comments (1)

Collapse
 
pavelee profile image
Paweł Ciosek

Great! Its really good to have vanilla js foundations. Understanding how it works under the hood. Have fun with react!