5 ms·
+1 on this. I'm going for Preact (https://github.com/developit/preact https://github.com/developit/preact) for React alternative.
by devdoomari 9y ago
+1 on this.
I'm going for Preact (https://github.com/developit/preact https://github.com/developit/preact) for React alternative.
- deleted 9y ago[deleted]
- deleted 9y ago[deleted]
- khuey 9y agoIf React really is covered by patents Facebook has then Preact is likely infringing on them since it does the same things in similar ways. And Preact doesn't come with a patent grant from Facebook at all.
- reconbot 9y agoWe learned from Java and Google that you can't patent and API. It's not forked from React it's an alternative.
- kccqzy 9y agoThe case was about whether or not you can copyright an API.
- Lazare 9y agoThe risk behind Preact isn't the API. Remember, this is a discussion about patents, so what matters is fundamental concepts and algorithms. The most likely thing for Facebook to patent is the concept of a virtual DOM that's diffed to apply updates to the real DOM. IF they have such a patent (and apparently they don't), then any library that has a vdom implementation infringes, including Preact. Of course, if they DON'T have such a patent (which seems to be the case), then Preact is safe, but so is React. :)
- chx 9y agoI believe you are mistaken, the problem with the license, if I recall the discussion correctly was that if your company used React then they can't go on a patent lawsuit with Facebook even if the patents have zilch to do with React.
- chrisco255 9y agoGreat explanation of implications of React patent clause: https://medium.com/@dwalsh.sdlr/react-facebook-and-the-revokable-patent-license-why-its-a-paper-25c40c50b562 https://medium.com/@dwalsh.sdlr/react-facebook-and-the-revok...
- oneweekwonder 9y agoNo. The implication is if you use react now you give away rights. The same is not true for angular, vue or mithril. Some argue if you use vdom there might be issue. But at least with those you/your dev is not giving away rights willingly... But come to think of it; That is the way fb started :/
- chrisco255 9y agoNo, what rights are you giving away? You always have the right to sue anyone for any reason. There have always been consequences for doing so. If you want to sue Facebook for patent infringement...they own thousands of patents, mind you...they are going to comb through their portfolio and find which ones you're infringing on in your product. That's what any company would do. Google. Apple. Microsoft. Samsung. Yahoo. Any of them.
- Lazare 9y ago> if I recall the discussion correctly was that if your company used React then they can't go on a patent lawsuit with Facebook even if the patents have zilch to do with React. Not at all.
- jannotti 9y ago
- dminor 9y agoThe Google/Java case was about copyrights, not patents, and Google actually lost on that issue. They won on a fair use claim. And that win is still subject to an ongoing appeal.
- threatofrain 9y agoAPI is a matter of copyright, patents can cover the methods and techniques underneath the API, and so in a way is more general, and it's possible that Facebook patents concern Vue as well.
- riffraff 9y ago> We learned from Java and Google that you can't patent and API did we? I think the jury is still out on this, i.e. we had one verdict for google, one for oracle, one for google again, and now there's another appeal.
- WalterSear 9y agoCould anyone with experience porting from one to the other let us know how it went?
- gedy 9y agoFor many codebases, Preact can be use simple as: npm i -S preact preact-compat then add this to webpack config: { "resolve": { "alias": { "react": "preact-compat", "react-dom": "preact-compat" } } } https://preactjs.com/guide/switching-to-preact https://preactjs.com/guide/switching-to-preact
- bpicolo 9y agoThe tricky part is probably testing. I don't think e.g. jest (or maybe it was enzyme?) supports alternative implementations quite yet, though they were working on it...that was true months ago though. If you're starting from scratch pretty easy though, sure. But that assumption is all too widespread in the JS ecosystem these days : (
- gedy 9y agoWe saw no problems with Mocha & Enzyme, can't comment on Jest.
- WalterSear 9y agowoot. brb :)