domql icon indicating copy to clipboard operation
domql copied to clipboard

`DOM.create` doesn't do exec() on first argument

Open Nikaoto opened this issue 2 years ago • 0 comments

// This doesn't work. If comparison was just an object, it would work.
const comparison = ({ state }) => ({
  props: {},
  h1: { 
    tag: "h1",
    text: "DOMQL -> Mitosis",
    style: { textAlign: "center" },
  },
  dropdown,
  container: {
    domqlCodeBlock,
    mitosisCodeBlock,
    style: {
      width: "100%",
      display: "flex",
      height: "100%",
      flexDirection: "row",
      justifyContent: "space-between",
    }
  },
  style: {
    height: "100%",
    fontFamily: "monospace",
  }
})

app = DOM.create(comparison, document.body, "app")

Nikaoto avatar Dec 01 '22 15:12 Nikaoto