13 results for "Components"
Articles (13)
ReactJS
ReactJS Dev Tools
React DevTools helps developers inspect the component tree, props, state, hooks, and rendering behavior. It is one of the most important tools for diagnosing React applications. Components panel
ReactJS
Suspense
Suspense provides a boundary where React can show fallback UI while a supported child operation is not ready. It is commonly used for lazy-loaded components and can participate in modern React data-loading patterns depending on the framework and architecture.
ReactJS
Lazy loading
Lazy loading means delaying the loading of code or resources until they are needed. In React, React.lazy is commonly used to lazy-load components.
ReactJS
TypeScript with React
TypeScript gives React applications compile-time checks for props, state, API models, events, hooks, and reusable components. It is especially valuable in large teams because it makes contracts between components and services explicit.
ReactJS
Error Boundries
Error Boundaries protect a React UI from certain rendering errors in descendant components. They let an application show a fallback screen instead of losing the entire visible application when a component throws during rendering.
ReactJS
Component Testing — React Testing Library
React Testing Library focuses on testing components from the user's perspective. Instead of asking whether a specific internal function was called, the test asks whether the user can see text, click a button, enter data, and observe the expected result.
ReactJS
Render Props & Compound Components
Render Props and Compound Components are two important React composition patterns. Render Props focus on sharing behavior by allowing the consumer to provide a rendering function. Compound Components focus on creating a group of components that work together through shared state and context.
ReactJS
Higher-Order Components HOC
A Higher-Order Component is a React pattern for reusing component behavior. An HOC is a function that receives a component and returns another component with additional behavior.
ReactJS
Controlled vs Uncontrolled Components
Forms are one of the clearest places to understand the difference between React state and the DOM itself. In a controlled component, React state is the source of truth for the input value. In an uncontrolled component, the DOM keeps the current value and React reads it when required.
ReactJS
useContext — Global State & Dependency Sharing
Context makes a value available to components below a provider without manually passing it through every intermediate component.
ReactJS
Props and state
React Hooks are functions that let function components use React features such as state, effects, references, context, and other capabilities.
ReactJS
ReactJS Project Structure
Components and JSX are two of the most important building blocks of React. Components provide the structure and reuse model, while JSX provides a readable way to describe the UI that a component should render.
ReactJS
Components and JSX
Props and state are fundamental concepts for managing data in React. Props allow a component to receive data from its parent, while state allows a component to manage data that can change over time.