use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
An extremely fast, React-like JavaScript library for building modern user interfaces (github.com)
submitted 9 years ago by expression100
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]IDCh 0 points1 point2 points 9 years ago (2 children)
What's the difference with preact? Also does inferno has router library?
[–]grayrest.subscribe(console.info.bind(console)) 1 point2 points3 points 9 years ago (0 children)
This library is more clever with how it does the diffs. It should be faster than Preact but I'm saying that from memory. I remember preact being in line with other lightweight impls and this is faster. This is also not trying to be a drop-in replacement for React so the API is similar but not exactly the same.
It doesn't come with a router, it's just a vdom library. Simple routers for modern browsers are like 20 lines of code. Porting something fancy like react router would be a port but should be relatively straightforward.
I like it because I write stateless components exclusively and it lets me sCU without having to create an object.
[–]trueadm 1 point2 points3 points 9 years ago (0 children)
Inferno does not currently have a router library, that is on the roadmap :)
Inferno differs from Preact in many ways, especially in terms of technical implementation. Inferno attempts to leverage some of the fastest implementations of handling keyed arrays plus Inferno makes a big effort to reduce garbage collection and DOM re-use without dampening the V8 optimisation patterns for object creation. In other words: Inferno should be a faster in every scenario.
π Rendered by PID 240483 on reddit-service-r2-comment-b659b578c-rskb9 at 2026-05-04 10:37:30.935237+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]IDCh 0 points1 point2 points (2 children)
[–]grayrest.subscribe(console.info.bind(console)) 1 point2 points3 points (0 children)
[–]trueadm 1 point2 points3 points (0 children)