Giter Site home page Giter Site logo

Isn't reusable about hyper-element HOT 4 CLOSED

janat08 avatar janat08 commented on July 23, 2024
Isn't reusable

from hyper-element.

Comments (4)

codemeasandwich avatar codemeasandwich commented on July 23, 2024

You need to close your tag the same as you do with a script tag. <my-time country="uk"></my-time> it's just a quirk of the web, that some tags must be close ¯_(ツ)_/¯

from hyper-element.

janat08 avatar janat08 commented on July 23, 2024

I guess it's using wire with id that makes it unreusable.

from hyper-element.

codemeasandwich avatar codemeasandwich commented on July 23, 2024

This closing of tags is part of the browser not hyperHTML.

This is an example
https://jsfiddle.net/bccqa5n1/1/

You can see that custom tags defined in the page must have a matching closing tag or it will just stay open. BUT you can have a self closing custom tag inside you render because hyperHTML v2.5 will now automatically add the matching closing tag

from hyper-element.

janat08 avatar janat08 commented on July 23, 2024

The issue is in fact about when you use hyperhtml.wire(obj, "ID")``, and then try to render a component that holds this wire id twice making it fail, which in my case like the whole app is based on. I'll close this as this is upstream without opening one in hyperhtml.

from hyper-element.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.