Tag: React

18 Best Practices for React

React is one of the most popular techs when talking about JavaScript. Even for some developers, it’s the best. React doesn’t force you how to structure your project. It’s completely up to you to choose how to do it. As a result, that makes some developers bring the artistic sense o...

Tips To Scale Up Your React Apps

Scalability is one of the core non-functional requirements in modern web applications. As developers, it is essential to ensure that both the application and the development processes are highly scalable to deliver the expected performance as the application grows. However, scaling react applicat...

Introducing Redux: A State Management Library for React

Have you ever found yourself lost in a maze of component states while building a complex React application? If so, you’re not alone. Managing state can be a challenge, especially as your app grows and becomes more complex. That’s where Redux comes in. Recently I learned a new technolo...

Introducing Redux: A State Management Library for React

Have you ever found yourself lost in a maze of component states while building a complex React application? If so, you’re not alone. Managing state can be a challenge, especially as your app grows and becomes more complex. That’s where Redux comes in. Recently I learned a new technolo...

5 Must-Have Tools for Building Web Applications with Next.js App Router

The introduction of the Pages Router took center stage with the release of Next.js 11. This routing mechanism quickly became the primary means of creating routes within Next.js applications. However, as the framework’s user base expanded, so did the complexity of the interfaces that developers...

How to Publish React Components: The Right Way

At the heart of React’s power lies its component-based architecture, which allows developers to construct intricate applications by piecing together reusable building blocks known as React components. These components encapsulate functionality, styles, and behaviors, promoting code reusab...

Building a Full-Stack Flask-React Web App:

Welcome, weary travelers of the Internet! You’ve ventured far and wide, seeking wisdom and morsels of code. Your journey has led you to the Oracle of Web Development: a blog post about building a full-stack Flask-React web application. Prepare for a cosmic, high-level, and minimally granular o...

Dependency injection in React

React Components should not contain business logic, do you agree? If yes, keep reading. If not, stop now. This article is for someone else. TL; DR; Add the dependency injection to your React project in 3 steps: create a “container” to put your dependency in create a hook&nb...

A Comparative Analysis of React and Angular in Modern Web Development

In the realm of modern web development, two prominent JavaScript frameworks, React and Angular, have garnered significant attention for their abilities to streamline the process of building interactive and dynamic web applications. While both frameworks serve the same purpose, they exhibit distinct ...

Fantastic closures and how to find them in React

This article is available in video format. Fewer details, but nice animations and voice instead of letters. Also, this article is part of the “Advanced React” book. If you like it, you might like the book as well  Table of content The problem JavaScript,...

Embracing the React Challenge

But that’s okay I remember back in January 2017 when React had already released its version 16, and at that time, an opportunity came my way, and it involved payment in dollars. It was like, “Wow, dollars…” A colleague offered me a freelance project that required me...

16 Libraries You Should Know as a React Developer

Being a modern React developer is not about knowing just React itself. To stay competitive, it is highly recommended to explore the whole ecosystem. In this article, I’ve compiled some of the most useful React component libraries you could use to speed up your developer workflow. Those w...

10 Clever Custom React Hooks You Need to Know About

Hooks have revolutionized the way we write React components by enabling us to use state and lifecycle features in functional components. But why stop at just useState and useEffect? In this article, we will explore 10 clever hooks that can help you level up your React game and c...

12 Common useState & useEffect Pitfalls: A Guide for Junior React Developers in 2023

1/12 — Fetching in useEffect A post component may keep track of an ID, and may also render during this post-body component. If you pass an ID to a post component, the post body may fetch some posts, and you may get a touchscreen problem. I like to extract this into its own separate typ...

¡Stop passing props between React components! Apply composition pattern

Passing props between React components is a common practice when building complex applications. While it works well for small-scale applications, it can quickly become unmanageable as the application grows larger. Passing props down several levels of components can make it diffic...

Handling Forms and User Input in React

Forms are a essential part of many web applications. They allow users to interact with the application and provide data. In React, there are two ways to handle forms: controlled components and uncontrolled components. Controlled components are the preferred way to handle forms in React. In a cont...

Trimming the Docker Image: How I Made My Docker Images Slimmer with Vite, React, and Multi-Stage…

Ever felt your Docker images are wearing a few extra layers? I’ve been there. Dockerizing sample Vite + React app used to result in a chunky image. But then, I was introduced to multi-stage builds and everything changed. Let’s dive in, starting from the very beginning! Step 1: Setting...

Awesome React component library

Today I will share a recommended React library. Note: The ranking is in no particular order, use it with caution according to specific business scenarios. 1. State management (1) React Redux Redux is a state container for JavaScript applications, providing predictable state managemen...

Vite-React + React-Router-Dom: The latest way!!

The short story is that I was following just another e-commerce tutorial and found out that most of them are OUTDATED so I challenged myself to find how to resolve the puzzle with the latest versions of everything. I must mention that the tutorial I am using is from 2021 so it seems that is very,...

Understanding React.js: Harmonious Component Symphony and LEGO-like Modularity

Unveiling the art and science behind React.js building blocks, React Components, that help craft captivating user experiences that shape the future of web development. The Role of React in Shaping the Digital Landscape In the world of web development, React.js emerges as a transformative force...

Deploying React Application in Kubernetes Cluster with Horizontal Pod Autoscaler using Terraform

Infrastructure as Code is using the files/code to drive or manage your IT infrastructure rather than physically doing it. IAC solves major pain issues of the company i.e. Management, Cost, Scalability, availability, and lesser discrepancies. IAC is very fast as we use the declarative approach i...

How to Reduce App Build Size in React Native

Developing a React Native app offers unparalleled flexibility and efficiency, but as your project grows, so does the app’s size. A bloated app can lead to slower downloads, increased data usage, and diminished user satisfaction. In this guide, we’ll explore effective strategies to shrink...

How To Build a Home Screen Widget for iOS and Android in React Native

Objective: Learn how to build a native widget and share information with your React Native app on click of the widget open the application’s home screen. React Native widget The widget is an important addition to an app and often a highly requested feature. Unfortunately, you...

React Native performance optimization using Render Locks

At Synaptic, we track thousands of signals across hundreds of metrics that gauge the performance of millions of companies in our database. While designing Inbox, a structured feed of such signals, one of the primary objectives was to make it easy for our users to make sense of a company’s perf...

React Native: Ultimate Guide to Create a Home Screen Widget for iOS and Android

Widgets are awesome tools that make your home screen look more attractive and also provide you with quick and useful information. In this post, we’ll show you how to create widgets for both Android and iOS and how to incorporate them into your React Native app. How does the widget work? ...

Bun: Running a react app with bun and tailwind (using react-app)

I have been looking for a definite solution to run react with bun. Ever since the launch of Bun 1.0, I have been really interested in bun technology and was eager to try it out but unfortunately, the process was not clear and I couldn't find a good guidelines online. Following is the step-by-ste...

Test suite code coverage & tools like Istanbul in React Native

Test code coverage is a measure of how much of your code is being tested by your test suite. It is a way to quantify the effectiveness of your tests and ensure that your code is thoroughly tested. Test code coverage is typically measured as a percentage of the lines of code that are executed duri...

Code Coverage Reports and Custom Configuration with Istanbul, Jest, and React

A few months ago, I met the one and only Robert “Uncle Bob” Martin (“Clean Code,” “The Clean Coder,” “Clean Architecture,” etc ). One of many questions people had for him was, “What parts on my application need to be covered with unit tests?&rdqu...

Reactive styles in React Native

When the new React Context API introduced, they showcased it with runtime theme and localization changing. React Context API is a perfect match for these use cases, because it allows to provide some not so frequently changing value deep down the view tree and makes accessing this value really e...

What is React Js?

React.js is a JavaScript library for building user interfaces, particularly for single-page applications where the user interface needs to be highly dynamic and responsive. React allows developers to create reusable UI components and manage the state of these components efficiently. One of the ke...