van icon indicating copy to clipboard operation
van copied to clipboard

🍦 VanJS: World's smallest reactive UI framework. Incredibly Powerful, Insanely Small - Everyone can build a useful UI app in an hour.

Results 41 van issues
Sort by recently updated
recently updated
newest added

How would you set up an intersection observer with vanJS? I have gallery of image thumbnails and would like to dynamically load/unload them when they come into view with intersection...

How to increase the precision of arr.length in van.derive? Currently length == 0 is not possible. https://jsfiddle.net/creatormir/cbaey9n3/ ``` const {a, button, div, input, span, strike} = van.tags let items; const...

@cqh963852 Seems like the van-jsx is behind on npm. I'm getting: ``` error TS2322: Type 'State' is not assignable to type 'string' ``` when trying ```jsx const state = van.state("")...

### Discussed in https://github.com/vanjs-org/van/discussions/152 Originally posted by **yahia-berashish** October 25, 2023 Hello, I tried to migrate React Context API to VanJS. The key steps: - create a class name and...

Using VanJS to create an input element with type `number` below, setting its value to a state, and then updating the value of this state in the oninput event of...

I have this component which is supposed to show a loader while it checks the auth state and then, if authenticated, show the child. ```javascript export function AuthGuard(child: HTMLElement) {...

As we know, we use __proto__ to do expose synthetic properties like val and oldVal of the given state. But current browsers are depreciating usage of __proto__- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto ![Screenshot 2023-12-20...

Can you add a comparison to Preact? That's what my team is currently using and it's pretty fast and lightweight so we would need to see VanJS compared to Preact...

Looking into a code and trying to wrap my head around a topic of dynamic deeply nested object and array structures. I'm pretty sure someone here thought it through and...

There is this fragment in tagsNS: ``` let [props, ...children] = protoOf(args[0] ?? 0) === objProto ? args : [{}, ...args] ``` and for the sake of possibility of creating...