https://github.com/uppercod/uranio
https://github.com/uppercod/uranio
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uppercod/uranio
- Owner: UpperCod
- Created: 2019-04-30T02:11:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-30T17:11:34.000Z (about 7 years ago)
- Last Synced: 2025-02-15T18:36:40.673Z (over 1 year ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @atomico/uranio
[](http://npmjs.com/@atomico/uranio)
[](https://bundlephobia.com/result?p=@atomico/uranio)
Small experiment that removes the layer of Hooks, Hooks, Functional Components and the context of [@atomico/core](https://github.com/atomicojs/core). to only work within web-component.
```jsx
import { h, Element } from "@atomico/uranio";
class Counter extends Element {
static observables = {
value: Number
};
increment() {
this.value += 1;
}
decrement() {
this.value -= 1;
}
render() {
return (
{`:host{display:block;padding:1rem}`}
increment
::{this.value}::
decrement
);
}
}
customElements.define("uranio-counter", Counter);
```