Giter Site home page Giter Site logo

virtual-element's Introduction

virtual-element

virtual-element's People

Contributors

anthonyshort avatar dominicbarnes avatar

Stargazers

葫芦娃-十天 avatar DanielLam avatar Ernst Salzmann avatar Manuel Dell'Elce avatar Eirik L. Vullum avatar Marc Fisher avatar Mr.Q avatar Livoras Dai avatar Chris Buttery avatar 黄海平 avatar Michael Anthony avatar MO avatar Hernan (Yidi) Ke avatar haoran avatar azu avatar SwhGo_oN avatar

Watchers

James Cloos avatar Michael Anthony avatar

virtual-element's Issues

How to handle undefined values

I'm not sure where this issue belongs, so I can always move this issue.

When an undefined child is given to an element, I've previously seen that element excluded by deku when rendering. As of 0.5.0, those elements are becoming the string "undefined" upon render:

export function render({ props }) {
  if (props.hint) {
    var hint = <div>{props.hint}</div>;
  }

  return (
    <div>
      <input type="text" />
      {hint}
    </div>
  );
}

I'm not sure if virtual-element should exclude those from the children array, or if deku has stopped ignoring them when it should.

Can't compile with JSX

Ive been trying to use virtual-element with deku, but babel compiles the jsx tags (as per their docs) to React.createElement, and by looking at the source I can't figure out how virtual-element is supposed work with jsx.

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.