Agentic Coding: Bet on the Primitives
The author describes a freelance project that needed three custom charts (a stacked bar chart, a line chart and a donut) matching a client's design system, in a project where Recharts was already installed. In an experiment, he built two sets of chart components within an hour: one on D3's math primitives with React rendering the SVG[1], and one on Recharts with the same API and design tokens[2]. The primitive version matched the design fully, while the Recharts version reached about 80% of the result faster, but the rest needed custom SVG code, and its entrance animation froze in the project's React stack, so the only workaround was to turn it off.
The author argues that high-level libraries trade flexibility for implementation labor, and that agentic coding[3] makes that labor cheap. When an agent can produce a reviewed chart component in minutes, the rational choice moves toward unopinionated primitives plus a thin custom layer that the team owns. He says this is not a return to writing everything by hand. He distinguishes dependencies that compute values without deciding how things look, such as d3-scale, from frameworks that control the SVG, animation and tooltip behavior.
He also lists cases where a high-level library still wins: teams without an established agentic workflow, commodity interfaces such as default-styled internal dashboards, and components with deep accessibility requirements such as comboboxes and date pickers. He notes that every line of code a team owns must also be maintained.
Read the original robinwieruch.deDiscussion
Sources
-
Robin Wieruch
Agentic Coding: Bet on the Primitives


