React Frontend Development for 1C-Bitrix: Performance & Flexibility

Our company is engaged in the development, support and maintenance of Bitrix and Bitrix24 solutions of any complexity. From simple one-page sites to complex online stores, CRM systems with 1C and telephony integration. The experience of developers is confirmed by certificates from the vendor.
Showing 1 of 1All 1626 services
React Frontend Development for 1C-Bitrix: Performance & Flexibility
Medium
~1-2 weeks
Frequently Asked Questions

Our competencies:

Development stages

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1356
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    943
  • image_bitrix-bitrix-24-1c_development_of_an_online_appointment_booking_widget_for_a_medical_center_594_0.webp
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    693
  • image_bitrix-bitrix-24-1c_mirsanbel_458_0.webp
    Development based on 1C Enterprise for MIRSANBEL
    828
  • image_crm_dolbimby_434_0.webp
    Website development on CRM Bitrix24 for DOLBIMBY
    731
  • image_crm_technotorgcomplex_453_0.webp
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    1072

When your product catalog lags on 5000 items and filters reload the page for three seconds — standard Bitrix components fail.

We've seen this dozens of times: a client asks for an interface like Ozon, but Bitrix ships with jQuery widgets out of the box. The solution is a React frontend that takes over the interface while leaving business logic and data to Bitrix. On one project with a catalog of 15,000 products, page render time dropped from 5 seconds to 400 ms after replacing the standard component with a React widget featuring virtualization and caching. Experience shows that a hybrid architecture (Bitrix + React) speeds up development of complex interfaces by up to 40% and simplifies maintenance. The key is setting up the integration correctly: typing the API, configuring caching, and planning error handling. Get a consultation for your project — we'll evaluate it in 2 days for free. Typical project cost ranges from $5,000 to $20,000, with average savings of $8,000 per project. Clients report a 1.4x improvement in development speed compared to traditional Bitrix development.

How Does React Compare to Standard Bitrix Components?

React is 3–5 times faster on complex interfaces, and development takes less time thanks to ready-made solutions. Below we compare performance and flexibility.

Criterion React Standard Components
Render speed for 5000 items 200–400 ms 2–5 sec
Request caching Built-in (React Query) None, requires custom work
Typing TypeScript None (JavaScript without types)
UI flexibility High (libraries) Low (limited templates)
SSR support Next.js Built-in (Bitrix)

React components reduce render time by up to 10x compared to standard Bitrix components, and development speed increases by 40%. For instance, React is 12.5 times faster for catalog rendering than standard Bitrix.

What Are the Patterns for Integrating React into Bitrix?

We identify three basic integration patterns. The choice depends on budget and the extent of integration with the current template.

Pattern Complexity Suitable for
Widgets Low Targeted interface improvements
SPA-page Medium Catalog, personal account
Headless CMS High Complete redesign or mobile app
  • Widgets. A React component mounts on a specific DOM element inside the template. Ideal for forms, filters, sliders, cart. Minimal markup changes — just add a div with an id.
  • Page SPA. Content is entirely generated by React, while Bitrix acts as a 'shell' (header, footer, menu). Data is fetched via API. Example: a catalog with dynamic product loading.
  • Headless CMS. The React application runs separately; Bitrix serves only as an API. The most flexible but labor-intensive option. Requires reworking routing and migrating templates.

Step-by-Step Integration Guide (Including Authorization)

  1. Audit the current template — identify where React will have the greatest impact. Usually, this is the catalog, cart, and personal account.
  2. Design the API — create REST endpoints or use standard ones. On average, 3–5 endpoints per section are needed.
  3. Develop components — write React components with TypeScript. Use React Query for state management with staleTime: 5 * 60 * 1000.
  4. Integrate widgets — embed them or switch routing. Typical workload is 2–3 days per stage.
  5. Set up authorization — Bitrix manages the session and CSRF token. React consumes them with one request:
// /local/js/src/hooks/useAuth.ts
import { useQuery } from '@tanstack/react-query';
import { bitrixApi } from '../api/bitrix';

export function useAuth() {
    return useQuery({
        queryKey: ['auth'],
        queryFn: () => bitrixApi.get<{ isAuthorized: boolean; userId?: number }>('user.current'),
        staleTime: Infinity,
    });
}

If the user is not authorized — redirect to the standard login page. A custom form is written only for specific requirements (e.g., login via email + social networks).

  1. Test — Vitest + React Testing Library cover 80% of cases. Mock the API, verify rendering and behavior.
  2. Deploy — build the bundle using Vite, place it in /local/js/build/. Set up caching and CDN.

Technical Implementation Details

Typed API Client

Instead of scattered fetch requests, create a unified typed API client with auto-filled CSRF token and response typing. This approach reduces integration errors by 2–3 times. Example implementation:

// /local/js/src/api/bitrix.ts
interface BitrixResponse<T> {
    result: T;
    total?: number;
    error?: string;
}

class BitrixApiClient {
    private baseUrl: string;
    private sessionId: string;

    constructor() {
        this.baseUrl = '/local/ajax/api.php';
        this.sessionId = (window as any).BX?.bitrix_sessid?.() || '';
    }

    async get<T>(action: string, params: Record<string, unknown> = {}): Promise<T> {
        const url = new URL(this.baseUrl, window.location.origin);
        url.searchParams.set('action', action);
        Object.entries(params).forEach(([k, v]) =>
            url.searchParams.set(k, String(v)));

        const response = await fetch(url.toString(), {
            headers: { 'X-Bitrix-Csrf-Token': this.sessionId },
        });

        const data: BitrixResponse<T> = await response.json();
        if (data.error) throw new Error(data.error);
        return data.result;
    }

    async post<T>(action: string, body: Record<string, unknown>): Promise<T> {
        const formData = new FormData();
        formData.append('action', action);
        formData.append('sessid', this.sessionId);
        Object.entries(body).forEach(([k, v]) =>
            formData.append(k, String(v)));

        const response = await fetch(this.baseUrl, {
            method: 'POST',
            body: formData,
        });

        const data: BitrixResponse<T> = await response.json();
        if (data.error) throw new Error(data.error);
        return data.result;
    }
}

export const bitrixApi = new BitrixApiClient();

Learn more about Bitrix REST API at https://dev.1c-bitrix.ru/rest_help/.

React Query: Managing Server Data

React Query (TanStack Query) is the standard for working with APIs in React. Integration with Bitrix looks like this:

// /local/js/src/api/catalog.ts
import { useQuery } from '@tanstack/react-query';
import { bitrixApi } from './bitrix';

interface CatalogItem {
    id: number;
    name: string;
    price: number;
    quantity: number;
    previewPicture: string;
}

export function useCatalogItems(sectionId: number, page: number) {
    return useQuery({
        queryKey: ['catalog', sectionId, page],
        queryFn: () => bitrixApi.get<CatalogItem[]>('catalog.list', {
            section_id: sectionId,
            page,
            limit: 24,
        }),
        staleTime: 5 * 60 * 1000,
    });
}

// In the component:
function CatalogSection({ sectionId }: { sectionId: number }) {
    const [page, setPage] = useState(1);
    const { data, isLoading, error } = useCatalogItems(sectionId, page);

    if (isLoading) return <CatalogSkeleton />;
    if (error) return <ErrorMessage error={error} />;

    return (
        <div className="catalog-grid">
            {data?.map(item => <ProductCard key={item.id} item={item} />)}
            <Pagination page={page} onChange={setPage} />
        </div>
    );
}

Testing and Deliverables

Testing Components: Vitest and Mocks

Components are tested in isolation from Bitrix. For API requests, use mocks:

// catalog.test.tsx
import { render, screen } from '@testing-library/react';
import { CatalogSection } from './CatalogSection';

vi.mock('../api/bitrix', () => ({
    bitrixApi: {
        get: vi.fn().mockResolvedValue([
            { id: 1, name: 'Товар 1', price: 1000, quantity: 10, previewPicture: '' },
        ]),
    },
}));

test('renders product name', async () => {
    render(<CatalogSection sectionId={5} />);
    expect(await screen.findByText('Товар 1')).toBeInTheDocument();
});
Project directory structure
/local/
  /js/
    /src/
      /components/
      /hooks/
      /api/
        bitrix.ts
        catalog.ts
        cart.ts
      /store/
    vite.config.ts
    package.json
    tsconfig.json
  /templates/
    /main/

Deliverables

  • Source code of the React application (TypeScript, Vite, React Query).
  • API client for all required Bitrix endpoints.
  • Integration tests for key components with 95% coverage.
  • Documentation for build and deployment.
  • Maintenance and extension instructions.
  • Code warranty — 6 months of free consultations.

What Is the Cost of React Integration?

Contact us — we'll analyze your project in 2 days and provide a quote. Typical project cost ranges from $5,000 to $20,000, with an average savings of 40% in development time. Cost is calculated individually after the audit determines the exact scope of work. Over 10 years of experience, more than 50 projects integrating React with Bitrix. Get a consultation — contact us via Telegram or email. We'll evaluate your project for free.

What Does React Development for 1C-Bitrix Provide and When Is It Needed?

A catalog with 30,000 SKUs and a faceted filter — the standard Bitrix template loads the page in 3 seconds. A B2B cabinet with personalized discounts — price recalculation with every filter change. The bottleneck is not the data but the monolithic architecture: each block calls REST separately, 6–8 sequential requests of 200–500 ms result in a total delay of 2–3 seconds. React solves this radically: component model, virtual DOM, and library ecosystem turn a slow interface into a responsive application. We are a certified 1C-Bitrix partner with 10+ years of experience and over 500 completed projects. Order an audit — we will evaluate your project in 1–2 days and show cases similar to yours.

Architectural Approaches

SPA on React + REST API Bitrix (BX.rest)

The React application lives separately, accessing /rest/ or custom endpoints via CRestServer. Maximum control, but also maximum work.

  • Client-side routing with React Router — transitions without reload, but on F5 you need a catch-all on Nginx: try_files $uri /index.html
  • Optimistic updates: cart updates instantly, sale.basket.update flies in the background. On error, roll back state and show a toast
  • Frontend deploys to CDN independent of Bitrix — updated a button without touching the backend

SSR with Hydration — When Yandex Doesn't See SPA

Yandex has learned to render JS, but not perfectly; Googlebot is better, but still not 100%. Server-side rendering of React components via Node.js solves the problem radically: the bot receives ready HTML, the user gets an interactive application after hydration. FCP drops below one second on normal hosting, og:title and og:image work for social networks. The complexity is needing a Node.js process alongside Apache/Nginx serving Bitrix: two runtimes, two deploys, two log sets. Bitrix cache (CPHPCache, Composite) can be used to warm data that later goes to SSR.

Headless Bitrix — Admin Panel for Content Managers, React for Visitors

Content manager logs into /bitrix/admin/, edits infoblocks. The visitor sees a React application that retrieves data via API. One backend serves the site, mobile app, and Telegram bot. Scaling: React bundle on CloudFront/CDN, Bitrix on a single server. With 50,000 unique visitors, the frontend does not directly load the backend. Pitfall: the standard Bitrix visual editor (BXEditor) stops working for visitors — content managers will have to work only through the admin panel.

Stack and Component Architecture

Stack We Actually Use

Technology Why It's Used
React 18+ Suspense, useTransition — UI does not block during heavy catalog updates
TypeScript Typing Bitrix API responses — IBlockElement, BasketItem, Order. Without it, refactoring is Russian roulette
Vite HMR in 50 ms vs 3–5 s for webpack. On a project with 200 components, the difference is enormous
React Query useQuery(['catalog', sectionId]) — automatic cache, revalidation, retry on 503 from overloaded Bitrix
React Hook Form + Zod Order form: 15–20 fields, conditional validation (legal entity — one set, individual — another). RHF does not re-render form on every keystroke
Tailwind CSS Utility classes — no fighting with cascades from Bitrix's template_styles.css
Radix UI / Shadcn Accessible primitives with ARIA out of the box

How We Build Components and Type Data

Every project starts with a design system — otherwise, by the third month, three developers will write three different button components. Typography, colors, spacing — via CSS variables and Tailwind config. Forms: inputs with masks (phone, INN), searchable selects, file upload with preview and MIME validation. Product card is a separate story: price with discounts from CCatalogProduct::GetOptimalPrice(), labels "Hit"/"New" from infoblock properties, "Add to cart" button with loading/success/error states. Tables with virtualization (react-window) for price lists of 5000+ rows.

We type everything that comes from Bitrix. The REST API returns string where you'd expect number, "Y"/"N" instead of boolean, and null instead of empty array. A Zod schema on input parses and transforms — components get proper types.

// Real type of CIBlockElement via REST — surprises everywhere
interface BitrixProduct {
  ID: string;          // yes, string, not number
  ACTIVE: "Y" | "N";  // not boolean
  PRICE: string;       // also string
  QUANTITY: string;    // and this is string
}

Performance and API Integration

Aggregating endpoints are key. One ajax.php or custom controller on \Bitrix\Main\Engine\Controller gathers catalog data, filters, cart, and user in a single request. React Query caches the response, and a second visit returns from cache with staleTime — load time reduces by 60% already on the second load.

How Does React Improve Core Web Vitals?

  • LCP < 2.5 s — lazy loading images via loading="lazy", inline critical CSS, preload LCP image via <link rel="preload">
  • INP (replaces FID) < 200 ms — useTransition for heavy filtering, useDeferredValue for search input
  • CLS < 0.1 — fixed sizes for skeletons and images. Skeleton placeholders instead of spinners

Virtualization is not optional, but necessary. A catalog with faceted filter may return 500 products per page. React-window or react-virtuoso render only the visible 20–30 cards — DOM does not bloat, scrolling is smooth.

REST and Custom Controllers

Out of the box via /rest/: infoblocks (iblock.element.get), cart (sale.basket.*), orders (sale.order.*), users (user.*). For a simple catalog, that's enough. But 70% of tasks require custom endpoints. \Bitrix\Main\Engine\Controller is the standard way to create your own endpoints in D7. Write a controller, register via registerAction, get endpoint with CSRF protection and authorization out of the box.

  • Aggregation: one request = catalog data + filters + cart + user
  • WebSocket via Bitrix Push & Pull (CPullStack::AddByTag) — order status updates in real time, no polling
  • GraphQL middleware (webonyx/graphql-php) on top of D7 ORM — frontend requests exactly the fields it needs. Mobile traffic savings up to 40%

Projects, Timelines, and What's Included

Typical Projects We Have Already Done

  • Online store with 30,000 SKUs and faceted filter via \Bitrix\Iblock\PropertyIndex\Facet — SPA, React Query, catalog virtualization
  • B2B cabinet: personalized prices from CCatalogGroup, reconciliation statements from 1C via \Bitrix\Sale\Compatible\OrderCompatibility, order history with filtering
  • Corporate portal: dashboards on Recharts, real-time via Push & Pull, integration with internal APIs through middleware
  • Marketplace: two React applications (buyer + seller), common backend, data separation via CUser::GetUserGroup()

Timelines and What's Included

Project Type Timeline
Landing page on React + Bitrix 2–4 weeks
SPA online store 8–16 weeks
Corporate portal 10–20 weeks
Gradual frontend migration to React 6–12 weeks
  • Audit of current Bitrix code and architecture
  • Design of API layer (REST / custom controllers / GraphQL)
  • Development of design system and components
  • CI/CD setup (deploy React bundle independently of Bitrix)
  • Documentation of endpoints and types (Swagger / TypeScript types)
  • Transfer of access to server, admin panel, repository
  • Training content managers to work through the admin panel
  • Warranty support for 2 months after delivery

Exact numbers after scope analysis. Assessment is phased, with a fixed budget for each sprint.

How We Implement React in a Project

  1. Audit existing code — find bottlenecks: redundant requests, outdated templates, suboptimal caches.
  2. Design API layer — determine which endpoints are needed, design aggregators or GraphQL.
  3. Develop design system — create components (buttons, forms, cards) based on mockups or UX recommendations.
  4. Integrate with Bitrix via chosen approach (SPA, SSR, or Headless) — set up rendering and routing.
  5. Test and deploy — launch a pilot section (e.g., catalog), measure Core Web Vitals, upon approval expand.
Typical Mistakes When Implementing React in Bitrix
  • Ignoring Bitrix caching — React Query may conflict with composite cache if tagged caching is not configured.
  • Lack of error handling from REST — on a 500 error, the interface may "freeze". Need a global handler with fallback UI.
  • Too many micro-components — each small widget calls API. Better to aggregate data in a single request.
  • Wrong hydration order in SSR — data from the server must exactly match the client's initial state, otherwise React hydration errors.

Why React, Not Vue or Bitrix Templates

  • Ecosystem. For any UI task, there is a ready library: tables, charts, drag-and-drop, virtualization. For Vue, the choice is narrower; for Bitrix templates, almost absent.
  • Talent pool. Finding a React developer is three times easier than a Bitrix templater who knows D7 and template.php.
  • React Native. Components are reused in mobile app — not one-to-one, but business logic and types are shared.
  • Gradual adoption. Start with one section (/catalog/) on React, keep the rest on Bitrix templates. component_epilog.php loads the React bundle, data is passed via window.__INITIAL_DATA__.

1C-Bitrix + React is not a theoretical architecture but a working combination that already serves catalogs with tens of thousands of SKUs and B2B cabinets with heavy business logic. Learn more about React and 1C-Bitrix. Get a consultation — we will send you cases similar to your project. Contact us to discuss details. We implement turnkey with a guarantee of results.