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

v2 #2

Merged
merged 1 commit into from
Apr 25, 2017
Merged

v2 #2

merged 1 commit into from
Apr 25, 2017

Conversation

joshgillies
Copy link
Owner

@joshgillies joshgillies commented Apr 20, 2017

#This PR is for tracking a v2 release of hypercomponent. 🎉

Features include:

  • Reduction in code complexity overall.
  • Revised lifecycle hook naming convention onload -> load and onunload -> unload
  • Component constructor ensures each new component is backed by a unique instance, meaning calls to hyperHTML.wire now get passed the instance: eg. hyperHTML.wire(this) HT @WebReflection lifecycle events #1 (comment)
  • We use joshgillies/hyperrender under the hood, which abstracts WebReflection/viperHTML enabling server and client side rendering, and offers a unified rendering interface for html and svg components eg:
const svg = component(({ svg }) => svg`<svg></svg>`)
const html = component(({ html }) => html`<div></div>`)

TODO:

@joshgillies
Copy link
Owner Author

joshgillies commented Apr 20, 2017

Doh, pushed the wrong branch... oh well I guess this is v1-ish *cough* v2 *cough*...

@joshgillies
Copy link
Owner Author

merging, will action TODO's against their respective issues.

@joshgillies joshgillies merged commit 6533963 into master Apr 25, 2017
@joshgillies joshgillies deleted the v1 branch April 25, 2017 22:37
@joshgillies joshgillies restored the v1 branch April 25, 2017 22:38
@joshgillies joshgillies deleted the v1 branch April 25, 2017 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant