01 / React migration & component systems
Building an Accessible Component System for a Legacy CRM Migration
I gradually migrated a legacy JavaScript CRM interface to React while building its component system and design language.
- Role
- Frontend Engineer · UI design & component architecture
- Project
- Internal enterprise CRM
- Stack
- React, TypeScript, Radix UI, Tailwind CSS, CSS variables, Storybook, React Hook Form, Zod
Migration challenge & strategy
Migrating without stopping the CRM.
The CRM used PHP and legacy JavaScript. My responsibility was migrating its JavaScript interface to React while keeping the existing system operational.
I planned the migration order myself, choosing which parts to replace based on complexity and risk. Legacy and React interfaces continued to coexist throughout the process.
- Gradual legacy JavaScript → React migration, with both interfaces coexisting
- Building and extending the shared React component system throughout migration
Component system
The component system I built.
I designed the UI myself and built reusable components on top of Radix UI, using Tailwind CSS and CSS variables for styling and theming.
I defined component APIs, variants, sizes and interaction states, supported light and dark themes, and documented the system in Storybook.
- Accessible Radix UI primitives
- Reusable APIs and component variants
- Light/dark theming and Storybook
Real components
Storybook examples.
Adapted from my original Storybook component examples.
Notifications
Select
Multi Select
Dialog / Modal
Alerts
Date Picker
Complex booking forms
The hardest part: complex booking forms.
Booking forms had interconnected fields, conditional rules, multiple steps and complex validation.
I replaced custom legacy form logic with reusable React form fields, React Hook Form and Zod, making these workflows easier to manage and maintain.
- Dependent booking fields
- Shared form components + React Hook Form
- Zod validation through the form resolver
The migration gave the CRM a more consistent interface and a reusable component foundation. New screens became easier to build, while shared styles, themes and form patterns simplified ongoing maintenance.