CPLAT-4304 Expose React Fragments#303
Conversation
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
…react into CPLAT-4304-react-fragments
kealjones-wk
left a comment
There was a problem hiding this comment.
Just a few nits, overall looks good.
pubspec.yaml
Outdated
| url: https://github.com/cleandart/react-dart.git | ||
| ref: 5.1.0-wip | ||
| url: git@github.com:cleandart/react-dart.git | ||
| ref: CPLAT-4304-react-fragments |
There was a problem hiding this comment.
Remember to change this back this before merges
| import '../../demo_components.dart'; | ||
|
|
||
| ReactElement progressBasicDemo() => Dom.div()( | ||
| ReactElement progressBasicDemo() => Fragment()( |
| ..addTestId('DummyButton') | ||
| )('oh hai'); | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
#nit always end files with a blank line
There was a problem hiding this comment.
@sydneyjodon-wk this is a setting in WebStorm you can enable.
pubspec.yaml
Outdated
| git: | ||
| url: https://github.com/cleandart/react-dart.git | ||
| ref: 5.1.0-wip | ||
| url: git@github.com:cleandart/react-dart.git |
There was a problem hiding this comment.
| url: git@github.com:cleandart/react-dart.git | |
| url: https://github.com/cleandart/react-dart.git |
This should get CI working again
…react into CPLAT-4304-react-fragments
aaronlademann-wf
left a comment
There was a problem hiding this comment.
Some formatting issues that need to be addressed - but I thought running ddev format was already set up to use over_react_format?
aaronlademann-wf
left a comment
There was a problem hiding this comment.
Just some cleanup needed, then I'm ready to plus one @sydneyjodon-wk
| implements builder_helpers.UiProps { | ||
| // Initialize to a JsBackedMap so that copying can be optimized | ||
| // when converting props during ReactElement creation. | ||
| // TODO 3.0.0-wip generate JsBackedMap-based implementation used when no backing map is provided, like we do for Component2 |
There was a problem hiding this comment.
Seems like it is already doing this... so the TODO can be removed.
| @@ -0,0 +1,31 @@ | |||
| import 'package:over_react/src/component_declaration/component_base.dart' | |||
There was a problem hiding this comment.
This file needs the copyright block:
// Copyright 2019 Workiva Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.| @@ -0,0 +1,33 @@ | |||
| import 'package:over_react/over_react.dart'; | |||
There was a problem hiding this comment.
This file needs the copyright block:
// Copyright 2019 Workiva Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.| @@ -0,0 +1,70 @@ | |||
| // Copyright 2016 Workiva Inc. | |||
There was a problem hiding this comment.
| // Copyright 2016 Workiva Inc. | |
| // Copyright 2019 Workiva Inc. |
CPLAT-6244: DO NOT MERGE: Upgrade to analyzer 0.36.x and build_web_compilers 2.x
RM-53250 RM-53249 Release over_react 2.4.4+dart2
* master: Changelog entry for v2.4.4 over_react_2.4.4+dart2 Update base image to Dart2.4 Add dev_dep on build_resolvers. Remove coverage dep as it is currently unused. Upgrade to analyzer 0.36.x and build_web_compilers 2.x Changelog entry for v2.4.3 over_react_2.4.3+dart2 Run CI on the dev channel as well. Add more detailed warning message Fix another typo Fix typo Warn consumers if part directive is present, but no generations were found Update handler chain util tests. Reduce callback constant boilerplate Add explicit dynamic return types, use new typedef syntax Use local methods for better stack traces, add return type to fix lints Remove duplicated doc comments, which get inherited Remove CallbackUtil generic parameter, use covariant to add chainFromList typing
|
+10 |
|
@Workiva/release-management-p |
Hold: This PR is reliant upon the interop introduced in react-dart#188 within react-dart. Until it is merged, the CI will fail.Motivation
React 16 brings with it a common pattern in React for a component to return multiple elements. Fragments let you group a list of children without adding extra nodes to the DOM.
Changes
Fragmentcomponent that can be used to wrap React elements.Component2examples to useFragmentwhere possible.Release Notes
FragmentAPI.Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.
Please review:
@aaronlademann-wf @kealjones-wk @greglittlefield-wf @sydneyjodon-wk
QA Checklist
Merge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed: