-
Notifications
You must be signed in to change notification settings - Fork 68
CPLAT-3874: Function Components #221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- required additional arg for legacy context
- used to force null returns to be javascript null, dart2js sometimes converts null to undefined and react doesn't like that, not one tiny bit.
* 5.1.0-wip: remove dart 1 from ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really solid. The actual implementation is really simple and elegant. I just found a few little things, mostly nits!
Co-Authored-By: joebingham-wk <[email protected]>
- even though it doesn't do anything and webpack changes it back to a var anyway...
Co-Authored-By: Aaron Lademann <[email protected]>
Co-Authored-By: Aaron Lademann <[email protected]>
…leandart/react-dart into CPLAT-3874-function-components
7b4e5b8
to
40b9ef2
Compare
* 5.2.0-wip: react 5.0.0 Clean up lints react 5.0.0-alpha.1 Point readme links to pub.dev urls Update ReactJS version in README
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit on a confusing doc comment... but I'm +1 on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome! I found a couple import sections that could be alphabetical, but those are super nitty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
+1 refresh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Tested function components in the example
+10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small comments plus some merge-conflicts and a related comment 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+10
Motivation
Support Function Components in react-dart
Changes
ReactDartFunctionComponentFactoryProxy
classregisterFunctionComponent
methodReactDartComponentFactoryProxy2
'sbuild
andgenerateExtendedJsProps
logic into mixin for re-use withReactDartFunctionComponentFactoryProxy
isDartComponent
logic to support function components