4 ms·
The Antd react UI library used to do exactly what the article recommends. Then they went through a lot of work and rewrote everything to work in exactly the way
by williamstein 2y ago
The Antd react UI library used to do exactly what the article recommends. Then they went through a lot of work and rewrote everything to work in exactly the way he recommends against. Part of the Antd argument is that they are able to get better performance and maybe better Typescript sanity by passing in an array of objects instead of dealing with a JSX tree.
- mikojan 2y agoMaybe so but you are not writing a general purpose UI library. You are writing a specific purpose UI component. You do not need to handle everybody's use-cases and edge-cases. Maybe you are justified in adding on to the complexity. Only maybe you are not!