react-with-angular

0

Описание

A project to test the React library usage in Angular application through a web-component wrapper

Языки

  • TypeScript71,5%
  • JavaScript20,2%
  • HTML6,3%
  • SCSS2%
README.md

How to glue a React component with an Angular app?

Follow these steps:

  1. create an NX workspace with Angular
  2. install React deps using
    npx nx @nx/react
  3. create a new React library
  4. modify the library component to export a component-wrapper which wraps the React component with a Web component
  5. do a lot of tricks to resolve the config issues to glue it together
  6. profit :D

The React component and its Web-component wrapper:

The usage of the wrapper component in Angular