custom-elements-everywhere | Custom Element + Framework Interoperability Tests | Functional Testing library

 by   webcomponents JavaScript Version: Current License: Non-SPDX

kandi X-RAY | custom-elements-everywhere Summary

kandi X-RAY | custom-elements-everywhere Summary

custom-elements-everywhere is a JavaScript library typically used in Testing, Functional Testing, Selenium, Framework applications. custom-elements-everywhere has no bugs, it has no vulnerabilities and it has medium support. However custom-elements-everywhere has a Non-SPDX License. You can download it from GitHub.

Karma tests for each of the major frameworks to see how they handle working with Custom Elements.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              custom-elements-everywhere has a medium active ecosystem.
              It has 1051 star(s) with 100 fork(s). There are 34 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 25 open issues and 35 have been closed. On average issues are closed in 449 days. There are 10 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of custom-elements-everywhere is current.

            kandi-Quality Quality

              custom-elements-everywhere has no bugs reported.

            kandi-Security Security

              custom-elements-everywhere has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              custom-elements-everywhere has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              custom-elements-everywhere releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of custom-elements-everywhere
            Get all kandi verified functions for this library.

            custom-elements-everywhere Key Features

            No Key Features are available at this moment for custom-elements-everywhere.

            custom-elements-everywhere Examples and Code Snippets

            No Code Snippets are available at this moment for custom-elements-everywhere.

            Community Discussions

            QUESTION

            Events emitted by a Web Component may not properly propagate through a React render tree: what possbile issues may I expect?
            Asked 2019-Jun-11 at 21:02

            I read "Events emitted by a Web Component may not properly propagate through a React render tree" from https://reactjs.org/docs/web-components.html and I am wondering what this warnning can really mean in practical terms.

            I have worked for while with Polymer 1 and 2 and now I am interested to start use React and take maybe advantage of other libraries well known to work smothly with React (eg. React Saga and Redux). Since I am convinced of advantages to work with WebComponents, I am trying to code a very simple webcomponents to be imported in a React project.

            Googling how use my own Webcomponent in a React project I found https://reactjs.org/docs/web-components.html guiding me ("... Using Web Components in React ...") but reading feew lines bellow I read the phrase pasted in my question topic. To make even more serious this warnning I read "... Most people who use React don’t use Web Components...".

            So my straight question is: isn't possible to use my own Webcomponets in ReactJs without major concerns? Is this warnning meanning I should expect some serious problems if I develop several WebComponents and try to import and reuse them in a ReactJs project?

            Obviously, a simple and isolated project may not worry much since we can test on demand but the main goal is develop a corporative components library based on Webcomponents (not Polymer, just Webcomponents) and allow developers to reuse them in several projects with ReactJs.

            *** edited From https://custom-elements-everywhere.com/ I read another warnning similar to above:

            "Handling data React passes all data to Custom Elements in the form of HTML attributes. For primitive data this is fine, but the system breaks down when passing rich data, like objects or arrays. In these instances you end up with stringified values like some-attr="[object Object]" which can't actually be used.

            Handling events Because React implements its own synthetic event system, it cannot listen for DOM events coming from Custom Elements without the use of a workaround. Developers will need to reference their Custom Elements using a ref and manually attach event listeners with addEventListener. This makes working with Custom Elements cumbersome".

            I am not interested to compare frameworks. I am purelly interested to be aware of well-know pitfulls I may follow down if I drive the company to develop a corporative library of webcomponets (future readers may find worth read about https://medium.muz.li/what-is-a-design-system-1e43d19e7696) and assume that we can stacks based on ReactJs.

            ...

            ANSWER

            Answered 2019-Jun-10 at 18:56

            You can totally use Webcomponents, there's no intrinsic reason why you can't.

            The only issue (as mentioned in the docs you linked to) is that you might have to do a bit of spade-work to get imperative-style Webcomponents to play nicely with the declarative style of React.

            Source https://stackoverflow.com/questions/56531840

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install custom-elements-everywhere

            To install all dependencies and build the site:.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/webcomponents/custom-elements-everywhere.git

          • CLI

            gh repo clone webcomponents/custom-elements-everywhere

          • sshUrl

            git@github.com:webcomponents/custom-elements-everywhere.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link