サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
WWDC24
blog.bitsrc.io
Conventional development methodologies and tools face challenges when it comes to component isolation. With the growing complexity of applications, the task of managing and reutilizing components in and across various projects becomes progressively more demanding. This is where Bit steps in to offer a modern and efficient solution. Bit is a build system for composable sofware. With Bit, you can bu
Our team is a couple of months into developing a new application, and our suite of unit 240 tests takes 46 seconds to run. That duration is not excessive yet, but it’s increasing in proportion to the number of tests. In a couple of months, it’ll take a couple of minutes to run our tests.
One fine day this summer, React legend, Dan Abramov, published a polyfill for the long awaited useEvent hook. Mind if we take a peek? useEvent polyfill, from the new React docs, as seen in Separating Events from EffectsA bit of contextIf you haven’t been following the ‘news’ lately, you might have missed the RFC for useEvent. Long story short, here is what the React team has to say about it: We su
Creating a new React application is not a simple task. Not just because you’ll have to work hard, but mainly because you have some key decisions to make that will affect your ability to scale, collaborate, and make this app work with the tools and needs you use today — and in the future. The decision on how to create a new React application need to be made in light of your end goal — are you build
Photo by Fares Hamouche on UnsplashUntil recently I thought Web Components were a failed attempt by the industry to develop a new technology that had failed years ago. I’ve been working on web-related projects for almost 20 years now, in different roles, companies and with different technologies, and I remember reading about them years ago, and then nothing. It was like one of those short-lived fr
Over the years, the HTTP request-response model has been used for client-server communications in web applications. However, with the popularity of real-time web applications, the need has emerged for servers to be able to push data to clients proactively without having clients requesting it first. As a result, push technology-based communication methods like WebSockets, and Server-Sent Events (SS
REST, GraphQL, and gRPC are the 3 most popular API development technologies in modern web applications. However, choosing one isn’t easy since they all have unique features. In this article, I will compare and contrast the features and usages of REST, GraphQL, and gRPC to help you…
Table of Contents:· Table of Contents: · How to type React props ∘ Creating a type alias for the props ∘ Typing optional props ∘ List of types for React component props · How to type React function components · How to type React hooks ∘ Typing useState hook ∘ Typing useEffect and useLayoutEffect hooks ∘ Typing useContext hook ∘ Typing useRef hook ∘ Typing useMemo hook ∘ Typing useCallback hook ∘ T
React Hook feature was first introduced on React 16.8 update and became immensely popular among developers due to its capabilities. It allows you to hook into React state and lifecycle features. And, sometimes, it could be challenging when using it for advanced use cases. In this article, I’ll discuss 5 common React Hooks mistakes every developer should avoid when building robust React application
Front-end developers often overlook error handling and logging. However, if any code segment throws an error, you must handle it correctly. Besides, depending on the situation, there are several ways to manage and log errors in React. This article will go over best practices for error handling and logging in React for different scenarios. Let’s get started. Error Handling — Best PracticesProper er
Everyone talks about the “best practices” to follow around different technologies, and sometimes we tend to listen to that advice. However, what about the things we’re doing and we’re not even aware that they’re not only wrong, but terrible practices? Let’s take a quick look at 5 of the worst things you can do to your code while writing JavaScript. Taking advantage of the language’s implicit type
Frontend is not what it used to be. In 2022, with React 18 (server components) and all the modern web stack, frontend development really means application development. The way we develop web and native applications becomes more modular, componentized, organized, as less focus should be given to implementation and configurations, and more to the creation and composition of apps. This is list will n
Image by Colin Behrens from PixabayAfter working for a while with Node.js I’ve come to the conclusion that there is no better tool to use when writing microservices. Of course, that is my opinion, completely biased by my preference for JavaScript as a language. But hey, even without me pushing my own opinion into your eyes, I bet you can’t say Node.js isn’t a great tool for building microservices.
Today using HTTPS to ensure a secure connection between the client and the server for web applications is necessary. But, most of the time, we hardly use HTTPS in local development servers. Sometimes it could lead to unexpected issues in your application. This article will discuss why you should use HTTPS in a local development server and how you can integrate it into your project. Why you Should
With the advancements of microservices, large applications have benefited in several ways. It helps to efficiently develop, deploy, and scale individual pieces of the application backend. Still, many realized that similar challenges exist for the frontend as well. That is where we typically start decomposing the frontend monolith into micro frontends. Image by Marna from PixabayA Microfrontend is
Photo by Cristina Gottardi on UnsplashIf you are familiar with React, you have probably heard of the concept of Virtual DOM. It is one of the main contributors to React’s popularity by increasing UI performance. However, when Angular released their new renderer Angular Ivy back in 2019, many wondered why they chose a concept known as Incremental DOM over Virtual DOM. And still, Angular sticks with
Photo by Nick Fewings on UnsplashOver the past few years, Vue.js has stepped up firmly, becoming a strong contender to compete with Angular and React. If we look at Vue’s growth, it relates to the framework’s simplicity, and availability of libraries, components…
Photo by Vishal Jadhav on UnsplashPreviously, React features such as state and lifecycle functions are available only for class-based components. Function-based components are referred to as dumb, skinny, or just presentational components because they can’t have access to state and lifecycle functions. But since the release of React Hooks, function-based components have been elevated into first-cl
Whether you’re a TypeScript developer, a JavaScript developer or any type of developer really, you most likely hate writing documentation. We all tend to hate it, even those of us who like to write. Can you imagine having to go through thousands of lines of code, review their logic, and document what it does in a format that is then easy to browse and understand? This second part is key however be
Yet another framework on the block. It is no news that the JavaScript community has been growing steadily and with that hundreds of frameworks have been reeled out more than we can comprehend and keep up with. Now, most of the stable JavaScript frameworks have also frameworks built on top of them, to make them more sophisticated and highly performant. In this post, we will be introducing the Blitz
Once we begin to type that code, we already introduce bugs and allocating memory without knowing it. How we manage them can make or mar our software. In this post, we will learn, using examples, about memory leaks in Nodejs and how we can solve them. In our effort to understand what a memory leak is, let’s first understand the memory model in JavaScript. This memory model visualizes how a JavaScri
I recently had the pleasure of playing around with Svelte and learned how to build a simple shopping cart application. Moreover, I couldn’t help but notice many similarities it has with React. It’s surprising to see how well of a contender it can be, to one of the most popular JavaScript libraries for building user interfaces. In this article, I’m going to compare Svelte vs. React and how they far
Photo by PixaBay on PixelsOver the last several years, JavaScript has been the most popular and widely used language for Single Page Applications. But recently, Microsoft introduces a new framework named Blazor, which allows us to develop browser-based applications using C#. In this article, I will be first…
Finally, we can use React.lazy and React.suspense to provide a fallback should the imported code fail for some reason, making sure the user experience won’t be disrupted because of the failing build. Module Federation in actionTo see how module federation actually works, you will need to download the Webpack 5, which is still in beta. You can clone this sample repo that I have created for this art
14 JavaScript Code Optimization Tips for Front-End Developers JavaScript has become one of the most popular programming languages of all time. It is used by almost 96% of websites all over the world according to W3Tech. One key fact you should know about the web is that you have no control over the hardware specifications of the devices your user would access your website on. The end-user may acce
Gatsby is a React-based free and open-source framework that allows developers to build optimized web apps following the latest web standards. It’s a static site generator like Hugo and Jekyll. However, Gatsby does better in many aspects than Hugo and Jekyll as you can see from this comparison. You don’t need Gatsby to deliver optimized web apps. You can do it yourself. Be prepared, though, for lon
Before we dive into implementing Container Pattern using React Hooks, let me get you up to speed and briefly explain what React Hooks and Container Pattern are. What are React Hooks?React Hooks let you manage state, as well as component lifecycle, in functional React components. That effectively makes everything functional and arguably, even eliminates the need for using class-based components. To
Working with forms is one of the most challenging problems to solve when developing applications with React. React is a minimalist UI library focused only on controlling the behavior of the interface, making sure that the UI change appropriately as a response to the user’s activity. It doesn’t offer a complete solution for responding to user’s inputs, but it does offer a method to save form values
As we all know, JavaScript has been changing rapidly. With the new ES2020, there are many awesome features introduced that you might want to checkout. To be honest, you can write code in many different ways. They might achieve the same goal, but some are shorter and much clearer. You can use some small tricks to make your code cleaner and clearer. Here is a list of useful tricks for JavaScript dev
次のページ
このページを最初にブックマークしてみませんか?
『blog.bitsrc.io』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く