Skip to content

Commit

Permalink
Merge pull request #149 from Workiva/greglittlefield-wf-patch-2
Browse files Browse the repository at this point in the history
FED-1852 Remove usages of deprecated APIs to be removed in react-dart 7.0.0
  • Loading branch information
rmconsole5-wk authored Nov 3, 2023
2 parents b8264ca + 8240180 commit 3e231e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# OverReact Test Changelog

## 2.11.6
* Remove usages of deprecated APIs that will be removed in react-dart 7.0.0
* Bump dependencies: `meta: ^1.8.0`, `test: ^1.21.1`

## 2.11.5
* Unpin meta dependency

Expand Down
5 changes: 2 additions & 3 deletions lib/src/over_react_test/js_component.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ final Function testJsComponentFactory = (() {
render: allowInterop(() => react.div({}, 'test js component'))
));

var reactFactory = React.createFactory(componentClass);

return ([props = const {}, children]) {
return reactFactory(jsifyAndAllowInterop(props), listifyChildren(children));
return React.createElement(
componentClass, jsifyAndAllowInterop(props), listifyChildren(children));
};
})();

0 comments on commit 3e231e4

Please sign in to comment.