# React Component

Published articles for React Component.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Refactoring React Component Hierarchies to Eliminate Prop Drilling

DevFeed: [Refactoring React Component Hierarchies to Eliminate Prop Drilling](<https://devfeed.tech/articles/refactoring-react-component-hierarchies-to-eliminate-prop-drilling-120787.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.01376>)

Author: Vangelis Gkinis, Vassilis E. Zafeiris

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Static code analysis](<https://devfeed.tech/topics/static-code-analysis.md>), [Front end](<https://devfeed.tech/topics/frontend.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [code-smell](<https://devfeed.tech/tags/code-smell.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [component](<https://devfeed.tech/tags/component.md>), [composition](<https://devfeed.tech/tags/composition.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [data](<https://devfeed.tech/tags/data.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [front-end](<https://devfeed.tech/tags/front-end.md>), [hierarchy](<https://devfeed.tech/tags/hierarchy.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [properties](<https://devfeed.tech/tags/properties.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [refactoring](<https://devfeed.tech/tags/refactoring.md>), [research](<https://devfeed.tech/tags/research.md>), [size](<https://devfeed.tech/tags/size.md>), [static](<https://devfeed.tech/tags/static.md>), [static-analysis](<https://devfeed.tech/tags/static-analysis.md>), [strategies](<https://devfeed.tech/tags/strategies.md>)

### AI overview

ReactRefactor is a Node.js command-line tool that uses static analysis to identify prop drilling and offers automated refactoring via the Context API or component composition. In a benchmark of open-source React applications, prop drilling occurred frequently across projects regardless of size. Propagation depth was generally low to moderate, while forwarding multiple properties along the same path was a more common source of complexity. The evaluation found that 76.3% of instances could potentially be eliminated automatically, primarily through Context API refactoring.

### Source excerpt

arXiv:2610.01376v2 Announce Type: replace Abstract: In React front-end development, Prop Drilling is the practice of propagating data through component properties across multiple levels of the component hierarchy. Despite being discouraged by React documentation and characterized as a code smell by recent research, little is known about its prevalence, complexity, and potential for automated refactoring. In this work, we propose a static analysis method for identifying Prop Drilling instances in a React codebase and eliminating them using two automated refactoring strategies based on Context API and Component Composition. The proposed method is implemented as a Node\.js command line tool, ReactRefactor, and empirically evaluated on a benchmark dataset of open-source React applications. The main findings of the empirical evaluation indicate (a) the frequent occurrence of prop drillings across benchmark projects, irrespective of project size; (b) their generally low to moderate complexity in terms of data propagation depth, contrasted with the more prevalent complexity arising from the simultaneous forwarding of multiple properties along the same path; and, (c) the potential for automated elimination of a substantial share (76.3%) of prop drillings, primarily through refactoring to the Context API.

## Designing Reliable Voice Workflows in Education Web Apps with JavaScript

DevFeed: [Designing Reliable Voice Workflows in Education Web Apps with JavaScript](<https://devfeed.tech/articles/designing-reliable-voice-workflows-in-education-web-apps-with-javascript-50829.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/designing-reliable-voice-workflows-in-education-web-apps-with-javascript/>)

Author: Saifullah Adenwalla

Published: 2026-08-26T09:41:26Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [React](<https://devfeed.tech/topics/react.md>), [Routing (disambiguation)](<https://devfeed.tech/topics/routing.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [developers](<https://devfeed.tech/tags/developers.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [permission](<https://devfeed.tech/tags/permission.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [routing](<https://devfeed.tech/tags/routing.md>), [web](<https://devfeed.tech/tags/web.md>), [web-apps](<https://devfeed.tech/tags/web-apps.md>)

### AI overview

A tutorial on designing reliable browser-based voice workflows for education web applications with JavaScript. It explains how to separate media capture, application state, signaling, routing, and telephony, while modeling permissions and call failures explicitly.

### Source excerpt

null Continue reading Designing Reliable Voice Workflows in Education Web Apps with JavaScript on SitePoint.

## A lightweight React component application for testing e-commerce ideas

DevFeed: [A lightweight React component application for testing e-commerce ideas](<https://devfeed.tech/articles/october-12-letter-88841.md>)

Original publisher: [Read original article](<https://ihatereading.in/t/october-12-letter>)

Author: Shrey Vijayvargiya

Published: 2025-10-12T13:01:19Z

Content type: article

Language: en

Sources: [iHateReading](<https://devfeed.tech/sources/ihatereading.md>)

Topics: [Single-page application (SPA)](<https://devfeed.tech/topics/spa.md>), [React](<https://devfeed.tech/topics/react.md>), [Shopify](<https://devfeed.tech/topics/shopify.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [blockchain](<https://devfeed.tech/tags/blockchain.md>), [coding](<https://devfeed.tech/tags/coding.md>), [commerce](<https://devfeed.tech/tags/commerce.md>), [development](<https://devfeed.tech/tags/development.md>), [e-commerce](<https://devfeed.tech/tags/e-commerce.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [full-stack](<https://devfeed.tech/tags/full-stack.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [other](<https://devfeed.tech/tags/other.md>), [product](<https://devfeed.tech/tags/product.md>), [programming](<https://devfeed.tech/tags/programming.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

The author describes a small, single-file React application concept for quickly launching e-commerce brands to test an idea. The proposed site uses modals and drawers for account, blog, product, and help content, with tabs, product listings, search, forms, and data served from an array that could later be replaced by an API.

### Source excerpt

Inspired by this Tweet I want to make something small but workable, probably like a single React component application Meaning it should only be one file appli...

## When React useCallback and useMemo Are Unnecessary

DevFeed: [When React useCallback and useMemo Are Unnecessary](<https://devfeed.tech/articles/the-useless-usecallback-48242.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/the-useless-use-callback>)

Published: 2025-07-28T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [hooks](<https://devfeed.tech/topics/hooks.md>), [render](<https://devfeed.tech/topics/render.md>), [function](<https://devfeed.tech/topics/function.md>), [object](<https://devfeed.tech/topics/object.md>)

Tags: [caching](<https://devfeed.tech/tags/caching.md>), [function](<https://devfeed.tech/tags/function.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [object](<https://devfeed.tech/tags/object.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [render](<https://devfeed.tech/tags/render.md>)

### AI overview

The article examines cases where React's useCallback and useMemo provide little value. It explains memoized components, referential stability, Object.is comparisons, rendering, and effect dependencies.

### Source excerpt

Why most memoization is downright useless...

## RSC for Astro Developers

DevFeed: [RSC for Astro Developers](<https://devfeed.tech/articles/rsc-for-astro-developers-36193.md>)

Original publisher: [Read original article](<https://overreacted.io/rsc-for-astro-developers/>)

Published: 2025-05-06T00:00:00Z

Content type: tutorial

Language: en

Sources: [Dan Abramov](<https://devfeed.tech/sources/dan-abramov.md>)

Topics: [Astro](<https://devfeed.tech/topics/astro.md>), [React](<https://devfeed.tech/topics/react.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [astro](<https://devfeed.tech/tags/astro.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>)

### AI overview

This tutorial compares Astro's server-rendered Astro Components and interactive Client Islands with React Server Components and Client Components. It explains their similar mental models and highlights differences in syntax, file structure, props, templates, and the use of directives to separate server and client code.

### Source excerpt

Islands, but make it fractal.

## JSX Over The Wire

DevFeed: [JSX Over The Wire](<https://devfeed.tech/articles/jsx-over-the-wire-36177.md>)

Original publisher: [Read original article](<https://overreacted.io/jsx-over-the-wire/>)

Published: 2025-04-16T00:00:00Z

Content type: article

Language: en

Sources: [Dan Abramov](<https://devfeed.tech/sources/dan-abramov.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [API](<https://devfeed.tech/topics/api.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [database](<https://devfeed.tech/tags/database.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [ui](<https://devfeed.tech/tags/ui.md>), [viewmodel](<https://devfeed.tech/tags/viewmodel.md>)

### AI overview

The article explores an inside-out approach in which an API returns React components or JSX rather than only JSON data. It then examines the difference between raw Models stored in databases and personalized, aggregated ViewModels consumed by a UI.

### Source excerpt

Turning your API inside-out.

## How to Use convex-panel to Integrate a Custom Convex Dashboard Into Your Dev Environment

DevFeed: [How to Use convex-panel to Integrate a Custom Convex Dashboard Into Your Dev Environment](<https://devfeed.tech/articles/how-to-use-convex-panel-to-integrate-a-custom-convex-dashboard-into-your-dev-environment-81322.md>)

Original publisher: [Read original article](<https://stack.convex.dev/convex-panel-bringing-the-convex-dashboard-dev-environment>)

Author: Stack

Published: 2025-03-18T22:00:31Z

Content type: tutorial

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [browser](<https://devfeed.tech/tags/browser.md>), [convex](<https://devfeed.tech/tags/convex.md>), [dashboard](<https://devfeed.tech/tags/dashboard.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [development](<https://devfeed.tech/tags/development.md>), [integrate](<https://devfeed.tech/tags/integrate.md>), [performance](<https://devfeed.tech/tags/performance.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [walkthroughs](<https://devfeed.tech/tags/walkthroughs.md>)

### AI overview

Convex Panel is a React component that embeds Convex dashboard functions in a development environment. The article describes why its author moved from a Chrome extension to a React component, citing credential handling, browser security, and CORS concerns. It walks through installation and setup, then covers its log, table, and backend health views.

### Source excerpt

Convex Panel simplifies development by integrating Convex's powerful dashboard directly into the dev environment, eliminating the need to switch between browser tabs. Built as a React component, it provides real-time logs, table editing, and performance insights seamlessly within your workflow. This tool enhances productivity, streamlines debugging, and optimizes backend management for developers using Convex.

## React Router 7: Private Routes (alias Protected Routes)

DevFeed: [React Router 7: Private Routes (alias Protected Routes)](<https://devfeed.tech/articles/react-router-7-private-routes-alias-protected-routes-18971.md>)

Original publisher: [Read original article](<https://www.robinwieruch.de/react-router-private-routes/>)

Author: Robin Wieruch

Published: 2025-01-06T05:52:47Z

Content type: tutorial

Language: en

Sources: [Robin Wieruch](<https://devfeed.tech/sources/robin-wieruch.md>)

Topics: [React Router](<https://devfeed.tech/topics/react-router.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [fallback](<https://devfeed.tech/tags/fallback.md>), [jsx](<https://devfeed.tech/tags/jsx.md>), [login](<https://devfeed.tech/tags/login.md>), [logout-button](<https://devfeed.tech/tags/logout-button.md>), [permissions](<https://devfeed.tech/tags/permissions.md>), [private](<https://devfeed.tech/tags/private.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [react-router](<https://devfeed.tech/tags/react-router.md>), [react-router-7](<https://devfeed.tech/tags/react-router-7.md>), [react-router-private-routes](<https://devfeed.tech/tags/react-router-private-routes.md>), [react-router-protected-routes](<https://devfeed.tech/tags/react-router-protected-routes.md>), [react-router-tutorial](<https://devfeed.tech/tags/react-router-tutorial.md>), [redirect](<https://devfeed.tech/tags/redirect.md>), [roles](<https://devfeed.tech/tags/roles.md>), [route](<https://devfeed.tech/tags/route.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

Private routes in React Router 7 restrict pages to users who meet their authorization requirements, which can include authentication, roles, or permissions. The excerpt demonstrates simulating login state with React's useState, then checking that state in a page component: unauthenticated users are redirected to the Landing page with React Router's Navigate component, while authenticated users see the page. It also notes that logging out while on a protected page triggers a redirect. The tutorial exempts the public Landing route and says Home and Dashboard share requirements, while other pages may differ. The excerpt warns that placing these checks in individual components does not scale; it ends before showing the alternative.

### Source excerpt

How to use Private Routes in React Router 7 (alias Protected Routes) by using conditions (e.g. authentication, permissions, roles) to authorize users for guarded pages ...

## Feature-Based React Architecture

DevFeed: [Feature-Based React Architecture](<https://devfeed.tech/articles/feature-based-react-architecture-18956.md>)

Original publisher: [Read original article](<https://www.robinwieruch.de/react-components-database-relations/>)

Author: Robin Wieruch

Published: 2024-11-25T05:50:46Z

Content type: tutorial

Language: en

Sources: [Robin Wieruch](<https://devfeed.tech/sources/robin-wieruch.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Database](<https://devfeed.tech/topics/database.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [component](<https://devfeed.tech/tags/component.md>), [database](<https://devfeed.tech/tags/database.md>), [database-relations-react-components](<https://devfeed.tech/tags/database-relations-react-components.md>), [feature-based-react-architecture](<https://devfeed.tech/tags/feature-based-react-architecture.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [structure](<https://devfeed.tech/tags/structure.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

This tutorial explains how database relationships can influence React component design in full-stack applications. It recommends composing focused components around individual features and separating data-fetching functions by domain to avoid increasingly complex nested relations.

### Source excerpt

How Database Relations inform React Components and how Component Composition is the solution to the problem ...

## Feature-based React Architecture

DevFeed: [Feature-based React Architecture](<https://devfeed.tech/articles/feature-based-react-architecture-18959.md>)

Original publisher: [Read original article](<https://www.robinwieruch.de/react-feature-architecture/>)

Author: Robin Wieruch

Published: 2024-11-25T05:50:46Z

Content type: article

Language: en

Sources: [Robin Wieruch](<https://devfeed.tech/sources/robin-wieruch.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [architecture-components](<https://devfeed.tech/topics/architecture-components.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [components](<https://devfeed.tech/tags/components.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [decoupling](<https://devfeed.tech/tags/decoupling.md>), [domain](<https://devfeed.tech/tags/domain.md>), [feature](<https://devfeed.tech/tags/feature.md>), [feature-based-react-architecture](<https://devfeed.tech/tags/feature-based-react-architecture.md>), [features](<https://devfeed.tech/tags/features.md>), [fetch](<https://devfeed.tech/tags/fetch.md>), [fetching](<https://devfeed.tech/tags/fetching.md>), [file](<https://devfeed.tech/tags/file.md>), [framework](<https://devfeed.tech/tags/framework.md>), [full-stack](<https://devfeed.tech/tags/full-stack.md>), [post](<https://devfeed.tech/tags/post.md>), [react](<https://devfeed.tech/tags/react.md>), [react-architecture](<https://devfeed.tech/tags/react-architecture.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [server](<https://devfeed.tech/tags/server.md>), [server-actions](<https://devfeed.tech/tags/server-actions.md>)

### AI overview

The excerpt recommends organizing large React applications around decoupled vertical features, especially as React Server Components and Server Actions bring database reads and writes closer to the UI. Keep components and data-fetching functions focused on one feature: instead of a Server Component that loads a post and its comments together, split post rendering from comment rendering, and split their fetching into domain-focused functions. This keeps files simpler and features less intertwined. The excerpt introduces this approach but cuts off during the data-fetching example, so it does not establish implementation details or tradeoffs.

### Source excerpt

How to create a feature-based React architecture that allows large scale applications ...

## How to Drag and Drop in React

DevFeed: [How to Drag and Drop in React](<https://devfeed.tech/articles/how-to-drag-and-drop-in-react-18958.md>)

Original publisher: [Read original article](<https://www.robinwieruch.de/react-drag-and-drop/>)

Author: Robin Wieruch

Published: 2024-10-10T04:56:46Z

Content type: tutorial

Language: en

Sources: [Robin Wieruch](<https://devfeed.tech/sources/robin-wieruch.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>)

Tags: [drag-and-drop](<https://devfeed.tech/tags/drag-and-drop.md>), [example](<https://devfeed.tech/tags/example.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [library](<https://devfeed.tech/tags/library.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [react-dnd](<https://devfeed.tech/tags/react-dnd.md>), [react-drag-and-drop](<https://devfeed.tech/tags/react-drag-and-drop.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [vertical](<https://devfeed.tech/tags/vertical.md>)

### AI overview

The tutorial builds a reusable React drag-and-drop list with @hello-pangea/dnd. It initializes a stateful item list with useState, wraps the list in DragDropContext, and uses Droppable as a render-prop component for the drop zone; its supplied properties must be applied to the surrounding list element. A drag-end callback receives source and destination details: if there is no destination, the operation is abandoned; otherwise, source and destination indexes are used to reorder the stateful list. Each item is rendered with Draggable, which requires an index prop for tracking and a stable key. The excerpt does not show the completed Draggable setup or later customizations.

### Source excerpt

A tutorial about using Drag and Drop in React by example for a vertical list (later horizontal list) with @hello-pangea/dnd as DnD library ...

## Announcing New Keycloak UI Component Libraries!

DevFeed: [Announcing New Keycloak UI Component Libraries!](<https://devfeed.tech/articles/announcing-new-keycloak-ui-component-libraries-31657.md>)

Original publisher: [Read original article](<https://www.keycloak.org/2024/09/keycloak-customizable-ui>)

Author: Erik Jan de Wit

Published: 2024-09-04T00:00:00Z

Content type: release

Language: en

Sources: [Keycloak Blog](<https://devfeed.tech/sources/keycloak-blog.md>)

Topics: [Keycloak](<https://devfeed.tech/topics/keycloak.md>), [React](<https://devfeed.tech/topics/react.md>), [releases](<https://devfeed.tech/topics/releases.md>), [npm packages](<https://devfeed.tech/topics/npm-packages.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [design-system](<https://devfeed.tech/tags/design-system.md>), [development](<https://devfeed.tech/tags/development.md>), [idm](<https://devfeed.tech/tags/idm.md>), [kerberos](<https://devfeed.tech/tags/kerberos.md>), [keycloak](<https://devfeed.tech/tags/keycloak.md>), [ldap](<https://devfeed.tech/tags/ldap.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [npm](<https://devfeed.tech/tags/npm.md>), [openid-connect](<https://devfeed.tech/tags/openid-connect.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [release](<https://devfeed.tech/tags/release.md>), [saml](<https://devfeed.tech/tags/saml.md>), [sso](<https://devfeed.tech/tags/sso.md>)

### AI overview

Keycloak announces new React component libraries built on PatternFly for creating account and admin consoles. The article also introduces the npm create keycloak-theme quickstart tool, which currently supports account consoles and is planned to support admin consoles in release 26.0.0.

### Source excerpt

We're excited to announce the release of two new npm packages designed to supercharge your Keycloak customization efforts. These React component libraries, built on top of PatternFly, provide the essential building blocks for crafting Keycloak account and admin consoles. The tool generates sample code for a custom console using our "Composable UI" technique. Essentially, this means that you can build your console out of exported Keycloak components that we intend to support in future releases. The packages are: @keycloak/keycloak-admin-ui This package provides the building blocks for creating a Keycloak admin console. @keycloak/keycloak-account-ui This package provides the building blocks for creating a Keycloak account console. @keycloak/ui-shared This package provides shared components and utilities for building Keycloak UIs. Accelerate Your Development with Our Quickstart Tool Kickstart your project with our npm create keycloak-theme my-theme command. This streamlined tool generates a project structure, essential dependencies, and configuration, saving you precious time. At the moment, the tool is only available for account consoles, but we are working on adding support for admin consoles. This will be available in the next release (26.0.0). Get Started: Run npm create keycloak-theme@latest my-theme. The keycloak server can be started with npm run start-keycloak Start the development server with npm run dev Customize your theme by editing files in the src directory. The keycloak server will connect to the development server and all the changes will be reflected in the browser. Just open your browser and go to http://localhost:8080/realms/master/account/personalInfo and login with admin/admin. This will open the keycloak account console. You will see that the example code has an extra page and some extra content above each page. Key Benefits: Rapid development: Create stunning UIs in less time. Consistency: Adhere to the PatternFly design system for a cohesive loo

## Zustand and React Context

DevFeed: [Zustand and React Context](<https://devfeed.tech/articles/zustand-and-react-context-48257.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/zustand-and-react-context>)

Published: 2024-04-14T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Zustand](<https://devfeed.tech/topics/zustand.md>), [state-management](<https://devfeed.tech/topics/state-management.md>), [React](<https://devfeed.tech/topics/react.md>), [Design system](<https://devfeed.tech/topics/design-system.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [design-system](<https://devfeed.tech/tags/design-system.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [performance](<https://devfeed.tech/tags/performance.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [state-management](<https://devfeed.tech/tags/state-management.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

An article examines when to combine Zustand with React Context. It discusses scoping stores to component subtrees, initializing them from props, testing implications, and a performance improvement for a large multi-selection component.

### Source excerpt

Zustand stores a global and don't need React Context - but sometimes, it makes sense to combine them regardless.

## CSS Text balancing with text-wrap:balance

DevFeed: [CSS Text balancing with text-wrap:balance](<https://devfeed.tech/articles/css-text-balancing-with-text-wrap-balance-45308.md>)

Original publisher: [Read original article](<https://ishadeed.com/article/css-text-wrap-balance/>)

Author: Ahmad Shadeed

Published: 2023-04-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ahmad Shadeed](<https://devfeed.tech/sources/ahmad-shadeed.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Google Chrome](<https://devfeed.tech/topics/google-chrome.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [balancing](<https://devfeed.tech/tags/balancing.md>), [browser](<https://devfeed.tech/tags/browser.md>), [chrome-canary](<https://devfeed.tech/tags/chrome-canary.md>), [css](<https://devfeed.tech/tags/css.md>), [design](<https://devfeed.tech/tags/design.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [text](<https://devfeed.tech/tags/text.md>), [ui](<https://devfeed.tech/tags/ui.md>), [website](<https://devfeed.tech/tags/website.md>), [wrap](<https://devfeed.tech/tags/wrap.md>)

### AI overview

This tutorial explains how CSS text balancing can make multi-line headlines and other UI text appear more visually consistent. It covers experimental support in Chrome Canary, the effect on text within containers, and examples including page titles, card titles, tooltips, modals, and FAQs.

### Source excerpt

Have you ever wished there is a native way in CSS to make two lines headlines consistent in the number of words per line? As a designer, I spot that a lot when dealing with varying content lengths while designing a website or a UI. Such a thing can make the UI you're working on feels unbalanced, or missing something. Here is what I mean: The highlighted word is a single word that lives on its line. From a visual perspective, this looks odd.

## Catching the blur event on an element and its children

DevFeed: [Catching the blur event on an element and its children](<https://devfeed.tech/articles/catching-the-blur-event-on-an-element-and-its-children-37248.md>)

Original publisher: [Read original article](<https://muffinman.io/blog/catching-the-blur-event-on-an-element-and-its-children/>)

Author: Stanko

Published: 2021-09-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Stanko Tadić](<https://devfeed.tech/sources/stanko-tadic.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [component](<https://devfeed.tech/tags/component.md>), [focus](<https://devfeed.tech/tags/focus.md>), [framework](<https://devfeed.tech/tags/framework.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>)

### AI overview

A tutorial explains how to handle blur events on a parent element with focusable children. It uses requestAnimationFrame to wait for the next focus target, then checks whether document.activeElement remains inside the parent before running blur logic such as closing a menu.

### Source excerpt

Recently I implemented a fly out menu in React, and stumbled on the following problem - I had to catch a blur event on the menu, but it had multiple focusable children. When user is tabbing between these menu items, blur event is triggered every time on the parent, followed by the focus event on the next item. As I wanted to close the menu on blur, this would close it before user was able to get to the next menu item. Solution is fairly simple and it is not React exclusive - it can be used with any other framework or vanilla JavaScript. The flow goes something like this: Listen to a blur event on the parent element (in my case it was the menu). This will catch blur event on all of its children too. In the handler, give browser time to focus the next element (by using requestAnimationFrame). Check if the newly focused element is in our parent element. If it is, do nothing, as focus hasn't exited the parent yet. If it is not, we left the parent element completely and it is safe to do our blur logic (in my case, it was closing the menu). Code looks like this: const handleBlur = (e) => { const currentTarget = e.currentTarget; // Give browser time to focus the next element requestAnimationFrame(() => { // Check if the new focused element is a child of the original container if (!currentTarget.contains(document.activeElement)) { // Do blur logic here! } }); }; React component # I pulled out the logic and created a small React component: const ChildrenBlur = ({ children, onBlur, ...props }) => { const handleBlur = useCallback( (e) => { const currentTarget = e.currentTarget; // Give browser time to focus the next element requestAnimationFrame(() => { // Check if the new focused element is a child of the original container if (!currentTarget.contains(document.activeElement)) { onBlur(); } }); }, [onBlur] ); return ( <div {...props} onBlur={handleBlur}> {children} </div> ); }; and usage is pretty straight forward: <ChildrenBlur onBlur={() => { doSomethingCoolOnBlur() }} > <bu

## How to set a React Component or dom element as a background image

DevFeed: [How to set a React Component or dom element as a background image](<https://devfeed.tech/articles/how-to-set-a-react-component-or-dom-element-as-a-background-image-20016.md>)

Original publisher: [Read original article](<http://engineering.hackerearth.com/2021/08/12/how-to-set-a-react-component-as-a-background-image/>)

Published: 2021-08-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [HackerEarth](<https://devfeed.tech/sources/hackerearth.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>)

Tags: [background](<https://devfeed.tech/tags/background.md>), [background-image](<https://devfeed.tech/tags/background-image.md>), [component](<https://devfeed.tech/tags/component.md>), [element](<https://devfeed.tech/tags/element.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [image](<https://devfeed.tech/tags/image.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [set](<https://devfeed.tech/tags/set.md>)

### AI overview

The excerpt describes placing a React component behind a textarea to make it appear as the textarea's background. Wrap both in a relatively positioned div, position the component absolutely at the top left, and place it behind the textarea with a negative z-index. Make the textarea background transparent so the component shows through. Because the overlay can interfere with editing, the excerpt says to set pointer-events: none; centering the component is optional. The excerpt ends during the CSS example, so it does not provide complete implementation details.

### Source excerpt

During my internship at HackerEarth, I faced an interesting problem. This blog is about that and how I solved it. Problem: To set a background image to the textarea element. My initial impression on seeing the design was that it would be easy. I thought it's a image but after exploring the code I came to know that it's not an image that we have to show as background instead, it's a React Component. So now what? To solve this problem we need to think from scratch. Solution: First, we will think about how to do it and then will implement it step by step. 1. Think From Scratch In this example, as you can see the content in the body element overlap the background-image. To solve this problem we just need to overlap the React Component with the textarea. 2. Implementation Create a textarea and React Component which we are going to use. The text area is to the left and to the right is the React Component which we are going to set as a background image in the textarea element. Steps: 1.Create a div which wrap textarea and React Component. Set the div position: relative and React Component position: absolute, top: 0 & left: 0. <div className="editor-container"> // position: relative <textarea className="editor"/> <BackGround /> // position: absolute; top: 0; left: 0; </div> 2.To overlap textarea on React component we need to set React Component z-index: -1. .bg-img { position: absolute; top: 0; left: 0; width: 250px; font-family: monospace; text-align: center; color: rgba(0, 0, 0, 0.29); z-index: -1; } As you can see we have a problem now. React Component is below the textarea and we are not able to see. 3.To solve the problem we need to make the textarea background transparent. But then if you click on the React Component you won't be able to edit the textarea. To solve this set pointer-events: none. .editor { height: 400px; width: 400px; background: rgba(0, 0, 0, 0); // background transparent } .bg-img { position: absolute; top: 0; left: 0; width: 250px; font-family: mono

## How UI Design Changes Can Disrupt Software Abstractions

DevFeed: [How UI Design Changes Can Disrupt Software Abstractions](<https://devfeed.tech/articles/can-you-move-the-button-30px-to-the-left-40661.md>)

Original publisher: [Read original article](<https://radek.io/posts/can-you-move-the-button/>)

Published: 2021-05-04T00:00:00Z

Content type: opinion

Language: en

Sources: [Radek Pazdera](<https://devfeed.tech/sources/radek-pazdera.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [React](<https://devfeed.tech/topics/react.md>), [Figma](<https://devfeed.tech/topics/figma.md>), [interface](<https://devfeed.tech/topics/interface.md>), [Requirements](<https://devfeed.tech/topics/requirements.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [component](<https://devfeed.tech/tags/component.md>), [figma](<https://devfeed.tech/tags/figma.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [interface](<https://devfeed.tech/tags/interface.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [requirements](<https://devfeed.tech/tags/requirements.md>), [ui](<https://devfeed.tech/tags/ui.md>)

### AI overview

A developer describes how changing a button's position in a Figma design forced a major restructuring of a React save dialog. The experience shows that changes in requirements or UI designs can have non-linear effects on implementation.

### Source excerpt

And how long will it take?

## Testing Apollo Client Applications

DevFeed: [Testing Apollo Client Applications](<https://devfeed.tech/articles/testing-apollo-client-applications-23430.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/introduction-to-testing>)

Author: Khalil Stemmler

Published: 2021-04-22T17:54:59Z

Content type: article

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [Integration testing](<https://devfeed.tech/topics/integration-testing.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [apollo-client](<https://devfeed.tech/topics/apollo-client.md>), [Mocking](<https://devfeed.tech/topics/mocking.md>), [Application Development](<https://devfeed.tech/topics/application-development.md>)

Tags: [apollo](<https://devfeed.tech/tags/apollo.md>), [apollo-client](<https://devfeed.tech/tags/apollo-client.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [errors](<https://devfeed.tech/tags/errors.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [integration](<https://devfeed.tech/tags/integration.md>), [mock](<https://devfeed.tech/tags/mock.md>), [presentation](<https://devfeed.tech/tags/presentation.md>), [query](<https://devfeed.tech/tags/query.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

The excerpt recommends unit tests for Apollo Client React components that check their presentation during data fetching, after a successful query, and after a failure. Unit tests are described as fast and inexpensive because they focus on small pieces of code and avoid real network requests. Apollo's component can wrap the component under test and supply mock GraphQL responses to exercise those states. The excerpt identifies unit, integration, and end-to-end testing as the article's three approaches, but does not provide their comparisons or details beyond unit testing.

### Source excerpt

Testing is likely one of the most important (yet challenging) aspects of developing high-quality software that can safely withstand change. Tests give you confidence that your code works and will continue to work -- even as you add new features over time. This article will discuss three different approaches to testing Apollo Client applications: unit, integration, and end-to-end tests. We'll discuss what they test, their tradeoffs, and where they belong within a comprehensive testing strategy.

## How to write a React Component in TypeScript

DevFeed: [How to write a React Component in TypeScript](<https://devfeed.tech/articles/how-to-write-a-react-component-in-typescript-51801.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/how-to-write-a-react-component-in-typescript>)

Published: 2021-03-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [function](<https://devfeed.tech/topics/function.md>), [generic programming](<https://devfeed.tech/topics/generic-programming.md>)

Tags: [how-to](<https://devfeed.tech/tags/how-to.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

### AI overview

A tutorial explains how to type React components in TypeScript. It recommends treating components as functions, typing their props and return values directly, and avoiding approaches with notable limitations.

### Source excerpt

There are plenty of ways to do it, here's how I recommend typing React Components

## How to Build a "Boop" Hover Interaction in React

DevFeed: [How to Build a "Boop" Hover Interaction in React](<https://devfeed.tech/articles/boop-45224.md>)

Original publisher: [Read original article](<https://www.joshwcomeau.com/react/boop/>)

Author: Josh W. Comeau

Published: 2020-11-23T12:30:00Z

Content type: tutorial

Language: en

Sources: [Josh Comeau's blog](<https://devfeed.tech/sources/josh-comeau-s-blog.md>)

Topics: [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [React](<https://devfeed.tech/topics/react.md>), [hooks](<https://devfeed.tech/topics/hooks.md>), [animations](<https://devfeed.tech/topics/animations.md>)

Tags: [animations](<https://devfeed.tech/tags/animations.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

An intermediate React tutorial that builds a playful "boop" interaction: an element briefly switches to a transformed state when hovered, then returns to its natural state. It demonstrates component design, state and effect hooks, timers, and configurable rotation and transition properties.

### Source excerpt

An in-depth tutorial that teaches how to create one of the most adorable interactions I've ever created. We'll learn how to use React components and hooks to abstract behaviours, and see how to design the perfect API. Even if you're not into animations, I think you'll find it interesting!

## New Account Console

DevFeed: [New Account Console](<https://devfeed.tech/articles/new-account-console-31583.md>)

Original publisher: [Read original article](<https://www.keycloak.org/2020/09/new-account-console.adoc>)

Author: Stan Silvert

Published: 2020-09-04T00:00:00Z

Content type: release

Language: en

Sources: [Keycloak Blog](<https://devfeed.tech/sources/keycloak-blog.md>)

Topics: [Keycloak](<https://devfeed.tech/topics/keycloak.md>), [React](<https://devfeed.tech/topics/react.md>), [CSS](<https://devfeed.tech/topics/css.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [idm](<https://devfeed.tech/tags/idm.md>), [kerberos](<https://devfeed.tech/tags/kerberos.md>), [keycloak](<https://devfeed.tech/tags/keycloak.md>), [ldap](<https://devfeed.tech/tags/ldap.md>), [openid-connect](<https://devfeed.tech/tags/openid-connect.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [saml](<https://devfeed.tech/tags/saml.md>), [sso](<https://devfeed.tech/tags/sso.md>), [themes](<https://devfeed.tech/tags/themes.md>)

### AI overview

Keycloak announces its new Account Console as the default, replacing the old console for most users. Built with React and PatternFly 4, it supports custom themes, custom pages, and pluggable React components.

### Source excerpt

The Keycloak team is excited that our new Account Console is finally final! The old account console is still available for those who need it, but the new version is the default from now on. This new console is written as a Single Page Application with React and PatternFly 4. In addition to the modern look and feel, we make it really easy for organizations to personalize the console with custom themes and even custom pages that can have unlimited functionality. Screen shots of New Account Management Console Theming PatternFly 4 makes it really easy to theme the new account console using its system of CSS variables. All you have to do is tweak a few variables, add your own logo, and the console is perfectly skinned. body { --pf-global--FontFamily--sans-serif: Comic Sans MS; --pf-global--FontFamily--heading--sans-serif: Comic Sans MS; --pf-global--BackgroundColor--dark-100: #2B9AF3; --pf-global--Color--100: #004080; } Create your own sub-pages You may have noticed the "Keycloak Man" section above. The new console includes one of our most requested features. That is the ability to add and remove sub-pages. So we've made it very easy to develop and plug in your own React component and add it to the Account Console. It's even possible to build new pages with nothing but an editor. No build step is required unless you want to use more advanced tools like JSX and Typescript. Of course, this "Keycloak Man" theme is available online as a Keycloak Quick Start so you can check out all the source. The Home for New Keycloak Features New Account Console is the home for user configuration of new Keycloak features like WebAuthn support. So look for new features to start showing up in the New Account Console instead of the old one.

## Intentional Career Building

DevFeed: [Intentional Career Building](<https://devfeed.tech/articles/intentional-career-building-51810.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/intentional-career-building>)

Published: 2020-05-26T00:00:00Z

Content type: article

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [Job](<https://devfeed.tech/topics/job.md>), [gist](<https://devfeed.tech/topics/gist.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [React](<https://devfeed.tech/topics/react.md>), [X (Twitter)](<https://devfeed.tech/topics/twitter.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [building](<https://devfeed.tech/tags/building.md>), [career](<https://devfeed.tech/tags/career.md>), [gist](<https://devfeed.tech/tags/gist.md>), [github](<https://devfeed.tech/tags/github.md>), [job](<https://devfeed.tech/tags/job.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [testing](<https://devfeed.tech/tags/testing.md>), [twitter](<https://devfeed.tech/tags/twitter.md>), [work](<https://devfeed.tech/tags/work.md>)

### AI overview

This article offers practical ideas for intentionally building a software career and personal brand. It emphasizes communicating accomplishments, demonstrating the value of work, sharing useful technical answers publicly, and developing a professional following over time.

### Source excerpt

A challenge and ideas for you to do something to build your career.

## Understanding React's key prop

DevFeed: [Understanding React's key prop](<https://devfeed.tech/articles/understanding-react-s-key-prop-51903.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/understanding-reacts-key-prop>)

Published: 2019-11-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [render](<https://devfeed.tech/topics/render.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>)

Tags: [component](<https://devfeed.tech/tags/component.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [render](<https://devfeed.tech/tags/render.md>), [state](<https://devfeed.tech/tags/state.md>)

### AI overview

A tutorial explaining how React's key prop controls component instances and affects state preservation when elements are rendered, replaced, or mapped over arrays.

### Source excerpt

The key prop is a mechanism for controlling component instances.

## Avoid Nesting when you're Testing

DevFeed: [Avoid Nesting when you're Testing](<https://devfeed.tech/articles/avoid-nesting-when-you-re-testing-51733.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/avoid-nesting-when-youre-testing>)

Author: Kent C Dodds

Published: 2019-07-29T00:00:00Z

Content type: article

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [React](<https://devfeed.tech/topics/react.md>), [Jest](<https://devfeed.tech/topics/jest.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [hooks](<https://devfeed.tech/topics/hooks.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [hooks](<https://devfeed.tech/tags/hooks.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [jest](<https://devfeed.tech/tags/jest.md>), [nesting](<https://devfeed.tech/tags/nesting.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [reuse](<https://devfeed.tech/tags/reuse.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

This article explains why nested tests and hooks such as beforeEach can make test suites harder to maintain. Using React component tests as an example, it recommends avoiding unnecessary abstractions and nesting so developers spend less effort tracing setup, variables, and reassignment.

### Source excerpt

Why using hooks like beforeEach as a mechanism for code reuse leads to unmaintainable tests and how to avoid it.

[Next page](<https://devfeed.tech/tags/react-component.md?cursor=WyIyMDE5LTA3LTI5VDAwOjAwOjAwKzAwOjAwIiwgIjc1ODUxZDM0LTk2ZjUtNGY0MC1hN2I2LTQ0ODJhOWNmYTgwOCJd>)