DEV Community

Matthew Palmer
Matthew Palmer

Posted on

 

Vanilla JS projects in React

When it comes to vanilla javascript projects, we often find that things are a bit more complicated than if we were to simply use a library such as React instead. In my case, I'm aiming to convert Colt Steele's "The Great RGB Color Game" into a React application. This project alone helped me better understand useful React tools such as componentDidMount(), which is a lifecycle method that helps us execute tasks after the DOM (Document Object Model) is rendered.

This is where I find it useful to not only execute fetch requests, but also vanilla javascript code! Is this ideal? That's what I hope to find out in my journey as a Software Engineer. For now, I can confirm this is a working method for more detailed DOM manipulation in a robust library.

In conclusion, what more could a dev really ask for? The opportunity to learn and grow is always the pinnacle of our passion. Check out the repo for this application to follow the progress as I bring this application to life.

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.