hybrids

WebJar for hybrids

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

hybrids
Last Version

Last Version

1.4.2
Release Date

Release Date

Type

Type

jar
Description

Description

hybrids
WebJar for hybrids
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/hybridsjs/hybrids

Download hybrids

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/hybrids/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>hybrids</artifactId>
    <version>1.4.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/hybrids/
implementation 'org.webjars.npm:hybrids:1.4.2'
// https://jarcasting.com/artifacts/org.webjars.npm/hybrids/
implementation ("org.webjars.npm:hybrids:1.4.2")
'org.webjars.npm:hybrids:jar:1.4.2'
<dependency org="org.webjars.npm" name="hybrids" rev="1.4.2">
  <artifact name="hybrids" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='hybrids', version='1.4.2')
)
libraryDependencies += "org.webjars.npm" % "hybrids" % "1.4.2"
[org.webjars.npm/hybrids "1.4.2"]

Dependencies

compile (6)

Group / Artifact Type Version
org.webjars.npm : webcomponents__shadycss jar [1.5.2,2)
org.webjars.npm : core-js jar [2.5.7,3)
org.webjars.npm : webcomponents__shadydom jar [1.2.0,2)
org.webjars.npm : webcomponents__custom-elements jar [1.2.1,2)
org.webjars.npm : webcomponents__webcomponents-platform jar [1.0.0,2)
org.webjars.npm : webcomponents__template jar [1.4.0,2)

Project Modules

There are no modules declared in this project.

hybrids - the web components

npm version bundle size types build status coverage status npm gitter twitter Conventional Commits code style: prettier GitHub

๐Ÿ… One of the four nominated projects to the "Breakthrough of the year" category of Open Source Award in 2019

hybrids is a UI library for creating web components with unique declarative and functional approach based on plain objects and pure functions.

  • The simplest definition โ€” just plain objects and pure functions - no class and this syntax
  • No global lifecycle โ€” independent properties with own simplified lifecycle methods
  • Composition over inheritance โ€” easy re-use, merge or split property descriptors
  • Super fast recalculation โ€” smart cache and change detection mechanisms
  • Global state management - model definitions with support for external storages
  • Templates without external tooling โ€” template engine based on tagged template literals
  • Developer tools included โ€” HMR support out of the box for a fast and pleasant development

Quick Look

Add the hybrids npm package to your application, import required features, and define your custom element:

import { html, define } from 'hybrids';

export function increaseCount(host) {
  host.count += 1;
}

export const SimpleCounter = {
  count: 0,
  render: ({ count }) => html`
    <button onclick="${increaseCount}">
      Count: ${count}
    </button>
  `,
};

define('simple-counter', SimpleCounter);

Use the custom element in HTML document:

<simple-counter count="10"></simple-counter>

Click and play with <simple-counter> example:

Edit <simple-counter> web component built with hybrids library

Documentation

The project documentation is available at the hybrids.js.org site.

License

hybrids is released under the MIT License.

org.webjars.npm

hybrids

Extraordinary developer tools for creating Web Components

Versions

Version
1.4.2