6 ms·
Compare this to iOS, for instance, where I can go pick and choose from a huge online library of prebuilt components and be fairly confident I can just "pod inst
by sehr 12y ago
Compare this to iOS, for instance, where I can go pick and choose from a huge online library of prebuilt components and be fairly confident I can just "pod install" them and go
I believe this is the one of the main motivators behind web components
- cageface 12y agoI haven't built anything non-trivial with web components but I do like where they're going with them in principle. The biggest problem I see with WC is that they require native browser support to really function properly and I'm not sure it's really in Apple's or Microsoft's best interest to support them. AFAIK Apple hasn't made any indication so far that they will support the WC spec.
- BinaryIdiot 12y agoMicrosoft already supports some of the WC standard and Apple will as well since it's being put into WebKit. Polymer is a great polyfill though it does have some performance issues (0.5 is much improved at least).
- Offler 12y agoI think the biggest problem with WCs is they are standardizing best practices from 2011/Angular early days. Things have moved on and mutable two-way state that binds to a stateful DOM is no longer state of the art.
- rictic 12y agoHaving worked with web components over the past few months, yes this. I can mix and match polymer, x-* elements, brick components etc with ease. I don't have to care how a given component is written or what its dependencies are. It's definitely the future.
- Offler 12y agoI can drop a jQuery calendar into a React component with minimum fuss. I think the interoperability issue only comes with components from large frameworks.
- marknutter 12y agoBut how easily can someone drop your React component that utilizes jQuery Calendar into their own application?
- Offler 12y agoVery easily if they use ES6 modules and a package manager like jspm that understands ES6 modules. One line install, one line import.
- marknutter 12y agoI feel like "very easily" shouldn't be followed immediately by "if they use..." if it's to be taken seriously.
- mcintyre1994 12y agoHonest question - I'm a react newbie and one thing that isn't immediately obvious is how to drop a DOM-manipulating jquery library into a React component. I'm sure I'm missing something really simple here, but do you know anywhere that's documented by any chance?
- insin 12y agohttps://github.com/rpflorence/react-training/blob/gh-pages/lessons/05-wrapping-dom-libs.md https://github.com/rpflorence/react-training/blob/gh-pages/l...
- mcintyre1994 12y agoThat's great - thanks a lot! That whole repo looks really helpful :)