Skip to content
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

perf(parts): add reusable component parts #345

Closed
wants to merge 6 commits into from

Conversation

levithomason
Copy link
Member

@levithomason levithomason commented Jul 22, 2016

Experiment - Fixes #325

This PR addresses the issue of reusable component parts. These are parts of a component that do not have the ui className. See #325 for more detail.

Please offer any comments, ideas, or flames as I think any input on this would be helpful.

import META from './utils/Meta'
import { getUnhandledProps } from './utils/propUtils'

function makePart(partName) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See PR description, this is the component part factory.

This was referenced Jul 22, 2016
@levithomason levithomason force-pushed the feature/component-parts branch 2 times, most recently from 661889a to 025c6eb Compare July 22, 2016 16:08
@@ -0,0 +1,45 @@
#!/usr/bin/env zsh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might run into issues with Windows/non-zsh users trying to use this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aye, this was just for my local use to generate the first draft files. The script and files were outdated by the factory function.

@levithomason levithomason mentioned this pull request Aug 7, 2016
3 tasks
@levithomason levithomason force-pushed the feature/component-parts branch 2 times, most recently from 83643c6 to 1421756 Compare August 14, 2016 02:53
@levithomason
Copy link
Member Author

Updated with more robust part factories and notes. This is far from done, but will continue to churn on the ideas. Feedback welcome.

@levithomason levithomason changed the title Reusable component parts perf(parts): add reusable component parts Sep 20, 2016
@levithomason
Copy link
Member Author

This is getting stale, closing.

I think PR also suffered from scope creep. I think we should only implement a reusable component for the basic "className only" use case. This is something that will also likely shake out of solving #419, since the base component will handle the same functionality as a reusable component.

@levithomason levithomason deleted the feature/component-parts branch November 22, 2016 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants