a2ui-project / a2ui-project/a2ui

Renderers: consider wrapping one source of truth?

Đang mở
#404 2 bình luận 2 reaction 0 người được giao Xem trên GitHub
P2 status: first-line-handled status: needs review type: feature/enhancement
Ngôn ngữ chính
TypeScript
Star
16.4k
Fork
1.3k
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
134

Mô tả

There are already multiple issues and PRs open with people trying to contribute various attempts at Vue, react, etc.

Meanwhile, the repo already has angular and lit renderers.

If you start accepting these contributions, you'll basically end up with a component catalog ported to each known framework over time.

This seems like a pain to maintain since they're all going to provide the same functionality but through duplicated code tailored for each framework.

Have you considered just wrapping one source of truth in thin components for each of the frameworks?

Under the hood, this is the same as any other component catalog. You could store your source components as custom elements (lit), but provide react/vue/etc wrappers which render those CEs.

This way you maintain one copy of the component logic and various thin wrappers for sake of giving better DX to those using other rendering libraries.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.