Why Top Tech Companies Using React.js ?
Recep Taylanhan
Software Engineer at JPMorgan Chase & Co. | Empowering New Graduates and Junior to Mid-Level Engineers through Soft Skills and Career Growth
Frontend Interview Series?-2
How One Second Could Cost Amazon $1.6 Billion In?Sales
If you are not a Medium member, you can click here for reading.
“Amazon reported that a 100-millisecond delay in page load time could lead to a 1% loss in sales”
Last week, the first article in my Frontend Interview Series got a lot of attention. Since many of my followers are frontend developers, I want to focus on interview preparation for a while to help them land jobs and grow their careers. Even though the state of the market is really bad, let’s do our part and keep moving forward.
React in Daily Life?: Instagram, Netflix, Facebook?…
Today’s topic may be technical, but in reality, we all interact with it in our daily lives.
From the screen and buttons on your phone to the apps you use daily?—?Facebook, Instagram, Amazon, Google Chrome, Skype, banking apps, shopping apps, and even many applications in the Apple Store and Google Play Store?—?are built with React. But why?
Because React is a dynamic and high-performance technology designed for an exceptional user experience. It’s widely adopted by top-tier companies due to its efficiency and scalability. In fact, performance is so critical that Amazon found that a 100-millisecond delay in page load time could cost them 1% in sales, and a one-second slowdown could result in a staggering loss of $1.6 billion annually.
So, let’s dive deep into React and understand why it’s such a game-changer in the tech industry!
Question -1?: Can you explain what is the DOM??
DOM (Document Object Model) is a programming interface for web documents. It represents the structure of an HTML or XML document as a tree-like model where each node corresponds to a part of the document (e.g., elements, attributes, text). The DOM allows programs (like JavaScript) to dynamically access, manipulate, and update the content, structure, and style of a web page.
Question -2?: Can you explain what is the Virtual DOM??
Virtual DOM is a lightweight copy of the real DOM, used by libraries like React to improve performance. Instead of directly manipulating the real DOM (which is slow and resource-intensive), React works with the Virtual DOM to calculate the most efficient way to update the UI.
Question-3?: So How React’s Virtual DOM is working??
Question-4?: Why do you prefer using React over JavaScript in your Project??
Efficiency: React’s Virtual DOM minimizes direct DOM manipulation, making updates faster and more efficient compared to Vanilla JavaScript, which directly interacts with the slower Real DOM.
Reusability: React’s component-based architecture allows you to reuse code across your application, reducing duplication and improving maintainability, whereas Vanilla JavaScript requires manual organization and often leads to repetitive code.
Scalability: React’s structured approach makes it easier to build and maintain large-scale applications, while Vanilla JavaScript can become messy and hard to manage as projects grow.
Developer Productivity: React’s JSX syntax and rich ecosystem (e.g., Redux, React Router) speed up development, whereas Vanilla JavaScript requires more verbose code and lacks built-in tools for advanced features.
React is the most popular JavaScript library and using by top Companies.
Top Companies are Using?React
Question -5?: Do you think React has some Disadvantages??
While React is a powerful and widely-used library, it does have some disadvantages. Here are the key drawbacks of using React
Question -6?: You mentioned Client-side rendering (CSR). What is CSR actually??
Ok. let me try to explain in a real example. Lets say you are shoppping online on Amazon.
In this example as you see “your browser (client) handles all the updates dynamically, making the shopping experience fast and seamless without full page reloads.”
Question-7?: Can we use React for server-side rendering (SSR)??
React itself cannot perform SSR alone because it’s a client-side library. However, you can enable SSR by combining React with tools like ReactDOMServer or using frameworks like Next.js. Frameworks make SSR much easier and more efficient.
Question-8?: Can explain what is server-side rendering (SSR)??
Server-side rendering is a web development technique that involves rendering a web page on a server before sending the fully rendered HTML markup to the client.
Basically, SSR is a method where the server generates the HTML and CSS code for a web page and sends it to the client (the user’s browser) as a fully rendered page.
Sending a fully rendered page to the browser leads to faster page load times and helps search engines to effectively crawl and index the page, leading to improved SEO performance.
Question-9?: Last question What is benefits of server-side rendering (SSR)??
With SSR, the client doesn’t need to wait for JavaScript or CSS Files to load. Instead, the web page is fully rendered and filled with the necessary content. This leads to a better user experience because web visitors won’t encounter a blank screen while waiting for the required code to load. Instead, they see the website content faster.
Advantages of?SSR
Disadvantages of?SSR
Conclusion
React is a powerful library which has revolutionized modern web development. Its component-based architecture, Virtual DOM, and rich ecosystem make it a top choice for building dynamic, interactive, and scalable applications. Whether you’re building a small project or a large-scale application, React provides the tools and flexibility to create exceptional user experiences.
Keep going, and success will come.
Good luck!
Important Reminder:
I am excited to host Expert Amazon Engineer, Senior Software Engineer Tynar Arzymatov on March 22, 2025. Don’t forget to reserve your seat!
Software Engineer at JPMorgan Chase & Co. | Empowering New Graduates and Junior to Mid-Level Engineers through Soft Skills and Career Growth
2 天前Thanks guys for reading and sharing, reposting my article. Appreciate for your support