-
snabbdom.js里有几个核心的函数 h,createElm, init patchVnode upgradeChildren 。 前几个还是很好理解的,upgradeChildren不太好理解。
他主要是用h函数生成了Vnode。 再调用用patch,diff dom, 计算出最新dom,插入节点。再此过程中有各种钩子函数,这里不详细讲解钩子。
使用方式如下:
```
let s…
-
Snabbdom uses a hyper-script-like function to build it's vdoms, but it's second argument is different. Instead of attributes it's properties are used by various "modules";
```
h('div', {
props: {ti…
-
Hi! Thanks for this extension!
Not sure if a feature or bug. (Cursor at `|`):
```jsonc
{
"devDependencies": {
"shadow-cljs": "2.26.7"
},
|"dependencies": {
"snabbdom": "3.5.1…
-
[This dependency](https://github.com/snabbdom/snabbdom/blob/d66905438dc6866b2a7ab21d719c45a156d1252e/package.json#L61) would not get picked up for me.
```
"latest-snabbdom-release": "npm:snabbdom@2…
ursi updated
4 months ago
-
-
Recent releases after 3.5.1 seem to really trouble tsc.
We import and use snabbdom from ~ 31 modules of a monorepo.
Our type checking takes 3x as long when those modules import snabbdom 3.6 vs 3…
-
Hello. I am getting a typing error on VNodeStyles which use `delayed` and/or `remove`, despite following the [examples](https://github.com/snabbdom/snabbdom?tab=readme-ov-file#delayed-properties) from…
-
# Snabbdom V2
This issue is a placeholder for some discussions about snabbdom v2.
## Goals
1. 20% perf improvement on the most common cases.
1. 30% size reduction of the core library.
1. Pr…
-
Continuing discussion from tsers-js/snabbdom#2
Nice observations here from @laszlokorte:
> I just tried to create my first TSERS component using SVG.
>
> https://gist.github.com/laszlokorte/2a9ae0a…
-
## The dependency [snabbdom](https://github.com/paldepind/snabbdom) was updated from `0.7.2` to `0.7.3`.
🚨 [View failing branch](https://github.com/tusharmath/any-dom/compare/master...tusharmath:gre…