~repos /atoms-element
git clone https://pyrossh.dev/repos/atoms-element.git
A simple web component library for defining your custom elements. It works on both client and server.
387978cf
—
Peter John 3 years ago
Update readme.md
readme.md
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
# atoms-element
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/atoms-element)
|
|
4
|
-

|
|
5
|
-
|
|
6
3
|
A simple web component library for defining your custom elements. It works on both client and server. It supports hooks and follows the same principles of react.
|
|
7
4
|
Data props are attributes on the custom element by default so its easier to debug and functions/handlers are attached to the element.
|
|
8
5
|
|
|
@@ -25,12 +22,6 @@ After going through all these libraries,
|
|
|
25
22
|
And figuring out how each one implemented their on custom elements I came up with atoms-element. It still doesn't have proper rehydration lit-html just replaces the DOM under the server rendered web component for now. Atomico has implemented proper SSR with hydration so I might need to look into that in the future or
|
|
26
23
|
use it instead of lit-html. Since I made a few modifications like json attributes and attrTypes I don't know if it will easy.
|
|
27
24
|
|
|
28
|
-
## Installation
|
|
29
|
-
|
|
30
|
-
```sh
|
|
31
|
-
npm i atoms-element
|
|
32
|
-
```
|
|
33
|
-
|
|
34
25
|
## Example
|
|
35
26
|
|
|
36
27
|
```js
|