Comparing version 1.6.4 to 1.6.5
{ | ||
"name": "evolui", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"description": "Observable powered templates for asynchronous UIs", | ||
@@ -13,2 +13,6 @@ "main": "lib/evolui.js", | ||
}, | ||
"repository": { | ||
"url": "https://github.com/gvergnaud/evolui.git", | ||
"type": "git" | ||
}, | ||
"author": "Gabriel Vergnaud <github.com/gvergnaud>", | ||
@@ -15,0 +19,0 @@ "license": "MIT", |
@@ -8,5 +8,5 @@ # evolui | ||
* **Async** — evolui magically understands `Observables` and `Promises`. Just put them where they need to be displayed and, when they update, your UI will be refreshed for you. | ||
* **Virtual DOM** — evolui has a fast virtualDOM diffing algorithm and do the less work possible by only updating the closest node from the values that changed. | ||
* **Virtual DOM** — evolui has a fast virtual DOM diffing algorithm and do the less work possible by only updating the closest node from the values that changed. | ||
* **Components** — You can build large applications by splitting its complexity inside encapsulated and predictable components. | ||
* **Tiny** — The whole library is only `4kB` gziped. | ||
* **Tiny** — The API surface is very small and the whole library is only `4kB` gziped. | ||
@@ -70,2 +70,23 @@ ## Install | ||
## Simple App | ||
```js | ||
import html, { render } from 'evolui' | ||
import { createState } from 'evolui/extra' | ||
const Counter = () => { | ||
const state = createState({ count: 0 }) | ||
return html` | ||
<div> | ||
count: ${state.count} | ||
<button onClick=${() => state.count.set(c => c - 1)}>-</div> | ||
<button onClick=${() => state.count.set(c => c + 1)}>+</div> | ||
</div> | ||
` | ||
} | ||
render(html`<${Counter} />`, document.querySelector('#mount')) | ||
``` | ||
## Concept | ||
@@ -72,0 +93,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
50612
355
0