Skip to content

About

One web component, built once and used unchanged in Angular and React apps (Nx monorepo).

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Shared Web Component (Nx)

One UI component, built once as a standard web component and used unchanged in both an Angular app and a React app. It's a small proof of concept for a shared UI component library.

Layout

  • shared-web-component-library/: the web component (TypeScript), with Jest tests
  • demo-angular-host/: Angular app using the component
  • demo-react-host/: React app using the component
  • *-e2e/: Playwright end-to-end tests for each host

Run it

npx nx serve demo-angular-host
npx nx serve demo-react-host
npx nx test shared-web-component-library

About

One web component, built once and used unchanged in Angular and React apps (Nx monorepo).

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages