hybrids

WebJar for hybrids

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

hybrids
Последняя версия

Последняя версия

1.4.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

hybrids
WebJar for hybrids
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/hybridsjs/hybrids

Скачать hybrids

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
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)

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.4.2