ngr

Embed React components in your Angular app

Usage no npm install needed!

<script type="module">
  import ngr from 'https://cdn.skypack.dev/ngr';
</script>

README

ngr

Embed React components in your Angular app

npm version

Getting started

  1. Install the dependency from npm:
npm install --save ngr react react-dom
  1. Add jsx files support to compiler options in 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.
    Twitter Follow