Skip to content

Commit

Permalink
run build @ 18
Browse files Browse the repository at this point in the history
add versions to readme
  • Loading branch information
xjpro committed Jan 16, 2023
1 parent 69edf95 commit 613c0b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
A super simple way to render React components in AngularJS. This was written with the goal of
facilitating conversion of an AngularJS app without doing a full rewrite.

## Versions

Support for React 18 started in `react-in-angularjs@18`

Support for versions 16 or less use `[email protected]`

## Install
The function contained in this library is small enough that you might just want to copy paste it.
Feel free to do so. Otherwise:
Expand Down
3 changes: 1 addition & 2 deletions index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function angularize(Component, componentName, angularApp, bindings) {

this.$onChanges = () => {
this.root.render(React.createElement(Component, this));
};

this.$onDestroy = () => {
this.root.unmount();
Expand Down

0 comments on commit 613c0b2

Please sign in to comment.