Twenty-five UI libraries in one medical dashboard

A hospital front end where every screen had already been solved by a different library. What broke was not the features, it was the CSS, the dates, and the maintenance.

Articles

November 21, 2026· 6 min readFrontendReactTypeScriptAnt DesignArchitecture

live-care is a medical system front end: appointments on a calendar, patients, doctors, a map, reports with charts, media pages. React 19 with TypeScript and Vite on the front.

It also carries more UI dependencies than anything else I have built. Ant Design, PrimeReact, Bootstrap and react-bootstrap, FullCalendar, Google Maps, ApexCharts, Swiper and Slick, Plyr, AOS, a lightbox, SweetAlert2, react-select, two date pickers, two phone inputs, an input mask, Redux Toolkit, and Sass on top.

Every one of those was the right answer to one screen. Together they were the wrong answer to the project.

The CSS problem arrives first

Bootstrap ships a reset and a grid. Ant Design ships its own reset, its own typography and its own spacing scale. PrimeReact ships components with their own class names and its own theme. Put all three in one app and the first thing you do is lose an afternoon to specificity: a button that is 40px on one page and 32px on another, a table header that inherits the wrong font.

The fix that actually worked was boring: pick one system per surface and never mix inside a page. But "never mix" is a rule people break the moment a deadline appears, and the codebase has no way to enforce it.

Two date pickers, two value shapes

react-datepicker gives you a Date. react-bootstrap-daterangepicker gives you a moment object, or a string, depending on how you configure it. Both ended up in the appointment screens, and every conversion between them is a place where an appointment lands on the wrong day.

That is the real cost of a duplicate dependency. Not the kilobytes. The translations at the boundary, written by hand, in a medical system where a wrong day is a real-world problem.

Same story with the two phone inputs and the input mask: three ways to format a number, three sets of bugs, one column in the database.

What earned its weight

Not everything was waste. Some of these libraries solve a genuinely hard problem:

  • FullCalendar for appointments. A month, week and day view with drag and resize is months of work, and it works.
  • Google Maps for locations, because there is no cheaper way to show a clinic on a map.
  • ApexCharts for the reports, once, in one place.
  • Sass for the layout system underneath everything.

If I started again, those four stay, plus one component system and one date library. Everything else is a page-level need that a component can cover.

The rule I use now

Before adding a dependency I ask three questions:

  1. Does the project already solve this? If yes, the answer is no.
  2. Can I write the 80% version in under a hundred lines? A modal, a tooltip, a simple carousel, a toast: yes. Then I write it.
  3. Will this library still be maintained in two years, and does it have a peer-dependency story that survives a React major? Ant Design and PrimeReact both moved fast, and every major React upgrade means checking all of them.

The third question is the one nobody asks on the day they install.

What I would cut today

  • Swiper and Slick: one carousel, not two.
  • Plyr and the lightbox: only if a media page still needs them.
  • AOS: a scroll animation is a CSS class and an IntersectionObserver, and the app already has that.
  • One of the two date pickers, one of the two phone inputs.
  • PrimeReact or Ant Design, not both. One design system, chosen once.

That is roughly a third of the UI dependencies gone, and with them a class of bugs that has nothing to do with features: style conflicts, duplicate formats, and the upgrade tax on every one of them.

The honest summary

The dashboard works, and it looks the way a medical system should look: dense, calm, and boring in the right places. The problem is that it is expensive to change, and expensive to change is the thing that kills internal tools, because the moment a change costs a day, the request stops being made.

A front end is not judged by how many problems it solved on day one. It is judged by what it costs on day four hundred.

→ All articles