reactor-for-angular
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

ReactorForAngular

This is ReactorForAngular library, that will help you to run React in your Angular project simple and fast.

This library supports both React 17 and 18 root API.

Rapid Start

  • Install the library: npm i reactor-for-angular
  • Write your wrapper:
  selector: 'react-component-wrapper',
  template: `<span #title>Here will be a component</span>`
  })
  @ReactorReact()
  export class ReactComponentWrapper {
    @ViewChild('title') viewChild: Element = {} as Element;
    @Input() public parameter!: string;
  
    getElement() {
      return <RealReactComponent parameter={this.parameter} method={() => {}} />
    }
  }

Source code

GitHub

Readme

Keywords

none

Package Sidebar

Install

npm i reactor-for-angular

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

25.2 kB

Total Files

12

Last publish

Collaborators

  • blinikar