Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
taoxin
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
taoxin
3y ago
Ah.. you need a binding function to wrap the state-derived content into a reactive UI element, see: https://vanjs.org/tutorial#state-derived-child . I made the change in your code to make it work: https://jsfiddle
2.
▲
by
taoxin
3y ago
Yes. This is how VanJS works. Code with VanJS is often more concise compared to equivalent code with React.
3.
▲
by
taoxin
3y ago
You can do with VanJS in this way as well. `set...` functions in React map to `....val = ...` in VanJS (which I think is more intuitive). But the `Await` component is a good abstraction so that you can specify what to show when the resource
4.
▲
by
taoxin
3y ago
Is this is what you are looking for? https://vanjs.org/vanui#await
5.
▲
by
taoxin
3y ago
道 (dao) means "the way of doing thing" in modern-day Chinese as well. For instance, 王道 means the "the way of governing". 路 is more common for the literal meaning of "road", though 道 has a meaning of both "
6.
▲
by
taoxin
3y ago
Here is the break down of my understanding about the philosophy described in 道德经: 1. There might be some universal rules about the world. 2. There are limitations in human's understanding and human language. 3. For all the rules that c
7.
▲
by
taoxin
3y ago
States are mutable whose value can be get/set via the ".val" property. However, the value of the states should be (ideally) an immutable object (or primitives).
8.
▲
VanJS App Builder: A GPT That Builds Web Apps with VanJS
(github.com)
2 points
by
taoxin
3y ago
|
0 comments
9.
▲
Emoji Pops: A fun game made under 60 lines with VanJS
(vanjs.org)
3 points
by
taoxin
3y ago
|
1 comments
10.
▲
by
taoxin
3y ago
My current best score is 125. Feel free to share your score here :-)
11.
▲
by
taoxin
3y ago
If you care enough to do your own research and math, you will definitely know that <# forks> / <# stars> for VanJS is in a normal range.
12.
▲
by
taoxin
3y ago
Did you realize this is true for many GitHub projects? Also "used by" for VanJS is undercounted as it only counts the projects with NPM integration, which was only added recently in the 1.0 release.
13.
▲
An Improved Unix Terminal – Demo App for VanJS
(github.com)
2 points
by
taoxin
3y ago
|
4 comments
14.
▲
by
taoxin
3y ago
A web-based Unix terminal with notable improvements, built with VanJS - https://vanjs.org/ . Under 300 lines in total. We've seen numerous efforts to bring in more modernized terminals and shells. VanJS goes with the ot
15.
▲
by
taoxin
3y ago
So, what's the problem here?
16.
▲
VanJS (abbreviated Vanilla JavaSript, smallest reactive framework) 1.0.0 is here
(vanjs.org)
4 points
by
taoxin
3y ago
|
3 comments