a2ui-project / a2ui-project/a2ui

Renderers: consider wrapping one source of truth?

Abierto
#404 2 comentarios 2 reacciones 0 asignados Ver en GitHub
P2 status: first-line-handled status: needs review type: feature/enhancement
Lenguaje dominante
TypeScript
Estrellas
16.4k
Forks
1.3k
Merge medio
2 d 13 h
PR fusionados (30 d)
134

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.