ngr
Embed React components in your Angular app
Getting started
- Install the dependency from npm:
npm install --save ngr react react-dom- Add jsx files support to
compiler optionsin the tsconfig.json file in your project:
"jsx": "react"Creating a React component
ng generate ngr:component hero-detail- Note: You need to add the component to your module.