Earlier quoted context omitted.
reading that, it seems pretty good. Are there performance costs to its diffing against the "real" DOM? 3kb for "React" is pretttttty tempting
Preact doesn't offer a full synthetic events system so handling e.g. touch events cross-browser may cause you a little more headache than it would in React. But I'm currently using Preact (server-rendered) for my personal site and loving the speed and byte size.
Rax – A universal React-compatible render engine
31–40 of 42 posts
Re: Rax – A universal React-compatible render engine
#32Earlier quoted context omitted.
reading that, it seems pretty good. Are there performance costs to its diffing against the "real" DOM? 3kb for "React" is pretttttty tempting
Forget about file size, 40kb vs 8kb doesn't really matter in the modern era. If anything, using an obscure library may cost you more because it's less likely to be a CDN cache hit for the user.
Re: Rax – A universal React-compatible render engine
#33Is it faster than Inferno[1]? [1] Inferno seems to be the fastest React drop-in replacement at 9kb size at the moment: http://stefankrause.net/js-frameworks-benchmark4/webdriver-t... - full post to the comparison table before: http://www.stefankrause.net/wp/?p=316
Those microbenchmarks are meaningless. If you choose a framework because of their microbenchmark grades you are making a huge mistake.
Re: Rax – A universal React-compatible render engine
#34Am I the only one finding it weird that they call it a render engine?
Re: Rax – A universal React-compatible render engine
#35Interesting that they don't compare it to preact: https://github.com/developit/preact
Re: Rax – A universal React-compatible render engine
#36Earlier quoted context omitted.
reading that, it seems pretty good. Are there performance costs to its diffing against the "real" DOM? 3kb for "React" is pretttttty tempting
Forget about file size, 40kb vs 8kb doesn't really matter in the modern era. If anything, using an obscure library may cost you more because it's less likely to be a CDN cache hit for the user.
Re: Rax – A universal React-compatible render engine
#37Earlier quoted context omitted.
Forget about file size, 40kb vs 8kb doesn't really matter in the modern era. If anything, using an obscure library may cost you more because it's less likely to be a CDN cache hit for the user.
Start testing on a mid range Android device on 3G and tell me you still believe that. On mobile it's not just the file transfer that takes time: it's the JavaScript parsing and execution (on a single core) that hurts too. iPhones are massively faster than Android (especially cheaper Androids) at this, so many developers don't realize how much performance cost there is for a growing majority of their users. Given how…
Re: Rax – A universal React-compatible render engine
#38their repo is full of slightly adapted other packages. If they are 100% React compat, why would they need rax-redux? :-S
On the surface, the rax-redux implementation appears to be a lot simpler. For example, react-redux's connect spans all these files https://github.com/reactjs/react-redux/tree/75658dab18f7fe3e... and includes "connectAdvanced": https://github.com/reactjs/react-redux/blob/75658dab18f7fe3e... While the rax-redux equivalent seems to be contained in a single file: https://github.com/alibaba/rax/blob/07e20908e4e17b182873db…
It's cool and needed to cover all of the cases and edge cases, but it's easy to see how, if you don't need that stuff, it can be reimplemented in a fraction of the code.
Re: Rax – A universal React-compatible render engine
#39Good to see compatible implementations. Over time, we'll have something React-like as part of the web standards.
Re: Rax – A universal React-compatible render engine
#40their repo is full of slightly adapted other packages. If they are 100% React compat, why would they need rax-redux? :-S
On the surface, the rax-redux implementation appears to be a lot simpler. For example, react-redux's connect spans all these files https://github.com/reactjs/react-redux/tree/75658dab18f7fe3e... and includes "connectAdvanced": https://github.com/reactjs/react-redux/blob/75658dab18f7fe3e... While the rax-redux equivalent seems to be contained in a single file: https://github.com/alibaba/rax/blob/07e20908e4e17b182873db…
In fact, it appears to be 98%-ish the same as React-Redux v4.4.6. They've added semicolons, swapped out the React imports for Rax imports, and shuffled the order of some of the methods, but the code is effectively identical.